diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2023-10-31 03:34:00 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-10-31 03:34:46 -0700 |
commit | f3760b4d3b2773d1cb8e9ddda29dc9bce386d540 (patch) | |
tree | 11f466cef17290c4f550637b6a5a9ab18dffdb80 /absl/container/internal/raw_hash_set.h | |
parent | 6c8338c252116e429307361ff4fdc1fd0532902d (diff) |
Mutex: Remove destructor in release build
The Mutex destructor is needed only to clean up debug logging
and invariant checking synch events. These are not supposed
to be used in production, but the non-empty destructor has
costs for production builds.
Instead of removing synch events in destructor,
drop all of them if we accumulated too many.
For tests is should not matter (we maybe only consume
a bit more memory). Production builds should be either unaffected
(if don't use debug logging), or use periodic reset of all synch events.
PiperOrigin-RevId: 578123259
Change-Id: I0ec59183a5f63ea0a6b7fc50f0a77974e7f677be
Diffstat (limited to 'absl/container/internal/raw_hash_set.h')
0 files changed, 0 insertions, 0 deletions