From 0d9c2fc763dd766b868665a302ff4526748c4b36 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Tue, 2 Jul 2024 08:40:43 -0700 Subject: Replace signed integer overflow, since that's undefined behavior, with unsigned integer overflow. PiperOrigin-RevId: 648730502 Change-Id: I662c365c59be9e51f565fd215d284a96b7bd8743 --- absl/synchronization/internal/graphcycles.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'absl/synchronization/internal/graphcycles.h') diff --git a/absl/synchronization/internal/graphcycles.h b/absl/synchronization/internal/graphcycles.h index ceba33e4..08f304bc 100644 --- a/absl/synchronization/internal/graphcycles.h +++ b/absl/synchronization/internal/graphcycles.h @@ -126,6 +126,11 @@ class GraphCycles { // Expensive: should only be called from graphcycles_test.cc. bool CheckInvariants() const; + // Test-only method to add more nodes. The nodes will not be valid, and this + // method should only be used to test the behavior of the graph when it is + // very full. + void TestOnlyAddNodes(uint32_t n); + // ---------------------------------------------------- struct Rep; private: -- cgit v1.2.3