diff options
author | Abseil Team <absl-team@google.com> | 2024-07-02 08:40:43 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2024-07-02 08:41:39 -0700 |
commit | 0d9c2fc763dd766b868665a302ff4526748c4b36 (patch) | |
tree | f036066c1f5149aa3061ff4203fe32ef37c3badb /absl/synchronization/internal/graphcycles.h | |
parent | f36d33317ce3ca0a2212ffd264a26fd18e57a509 (diff) |
Replace signed integer overflow, since that's undefined behavior, with unsigned integer overflow.
PiperOrigin-RevId: 648730502
Change-Id: I662c365c59be9e51f565fd215d284a96b7bd8743
Diffstat (limited to 'absl/synchronization/internal/graphcycles.h')
-rw-r--r-- | absl/synchronization/internal/graphcycles.h | 5 |
1 files changed, 5 insertions, 0 deletions
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: |