diff options
author | Daniel Cheng <dcheng@google.com> | 2023-09-20 15:45:44 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-09-20 15:47:39 -0700 |
commit | db08109eeb15fcd856761557f1668c2b34690036 (patch) | |
tree | 215419f577a13c27ca4219260b12c75470754794 /absl/synchronization | |
parent | 1f220d57f4968ac65be51dc0f4d659ce4760cfbb (diff) | |
download | abseil-db08109eeb15fcd856761557f1668c2b34690036.tar.gz abseil-db08109eeb15fcd856761557f1668c2b34690036.tar.bz2 abseil-db08109eeb15fcd856761557f1668c2b34690036.zip |
Use ABSL_PREDICT_FALSE and ABSL_RAW_LOG for shared safety checks in raw_hash_set.
`SwisstableDebugEnabled()` is also true for release builds with hardening
enabled. To minimize their impact in those builds:
- use `ABSL_PREDICT_FALSE()` to provide a compiler hint for code layout
- use `ABSL_RAW_LOG()` with a format string to reduce code size and improve
the chances that the hot paths will be inlined.
PiperOrigin-RevId: 567102494
Change-Id: I6734bd491d7b2e1fb9df0e86f4e29e6ad0a03102
Diffstat (limited to 'absl/synchronization')
0 files changed, 0 insertions, 0 deletions