aboutsummaryrefslogtreecommitdiff
path: root/absl/container/internal/container_memory.h
diff options
context:
space:
mode:
authorEvan Brown <ezb@google.com>2023-10-17 12:30:58 -0700
committerCopybara-Service <copybara-worker@google.com>2023-10-17 12:31:55 -0700
commit7676c565eedd2581b66839c239f3825d8e381119 (patch)
tree8d64dc6f9771724736e1144c1af6a3255e441f52 /absl/container/internal/container_memory.h
parentb87875aa079571a3aa8829d61538672d88657566 (diff)
downloadabseil-7676c565eedd2581b66839c239f3825d8e381119.tar.gz
abseil-7676c565eedd2581b66839c239f3825d8e381119.tar.bz2
abseil-7676c565eedd2581b66839c239f3825d8e381119.zip
Rollback: Add sanitizer mode checks that element constructors/destructors don't make reentrant calls to raw_hash_set member functions.
PiperOrigin-RevId: 574232718 Change-Id: I8ef25fec00b76ee5fb9424e7614ca55edd6ba81b
Diffstat (limited to 'absl/container/internal/container_memory.h')
-rw-r--r--absl/container/internal/container_memory.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/absl/container/internal/container_memory.h b/absl/container/internal/container_memory.h
index a735ca34..f59ca4ee 100644
--- a/absl/container/internal/container_memory.h
+++ b/absl/container/internal/container_memory.h
@@ -249,14 +249,6 @@ inline void SanitizerUnpoisonObject(const T* object) {
SanitizerUnpoisonMemoryRegion(object, sizeof(T));
}
-template <typename Container, typename Alloc, typename F>
-void RunWithReentrancyGuard(Container& c, Alloc& a, F f) {
- SanitizerPoisonObject(&c);
- if (!std::is_empty<Alloc>()) SanitizerUnpoisonObject(&a);
- f();
- SanitizerUnpoisonObject(&c);
-}
-
namespace memory_internal {
// If Pair is a standard-layout type, OffsetOf<Pair>::kFirst and