[NFC][sanitizer] Rename persistent_allocator to stack_store
authorVitaly Buka <vitalybuka@google.com>
Mon, 15 Nov 2021 06:37:52 +0000 (22:37 -0800)
committerVitaly Buka <vitalybuka@google.com>
Fri, 19 Nov 2021 02:36:58 +0000 (18:36 -0800)
compiler-rt/lib/sanitizer_common/CMakeLists.txt
compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.cpp
compiler-rt/lib/sanitizer_common/sanitizer_stack_store.h [moved from compiler-rt/lib/sanitizer_common/sanitizer_persistent_allocator.h with 95% similarity]
compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp
llvm/utils/gn/secondary/compiler-rt/lib/sanitizer_common/BUILD.gn

index 4c7ca62..0c14738 100644 (file)
@@ -156,7 +156,6 @@ set(SANITIZER_IMPL_HEADERS
   sanitizer_mac.h
   sanitizer_malloc_mac.inc
   sanitizer_mutex.h
-  sanitizer_persistent_allocator.h
   sanitizer_placement_new.h
   sanitizer_platform.h
   sanitizer_platform_interceptors.h
@@ -170,6 +169,7 @@ set(SANITIZER_IMPL_HEADERS
   sanitizer_report_decorator.h
   sanitizer_ring_buffer.h
   sanitizer_signal_interceptors.inc
+  sanitizer_stack_store.h
   sanitizer_stackdepot.h
   sanitizer_stackdepotbase.h
   sanitizer_stacktrace.h
index 626777d..472b83d 100644 (file)
@@ -11,7 +11,6 @@
 
 #include "sanitizer_chained_origin_depot.h"
 
-#include "sanitizer_persistent_allocator.h"
 #include "sanitizer_stackdepotbase.h"
 
 namespace __sanitizer {
@@ -1,4 +1,4 @@
-//===-- sanitizer_persistent_allocator.h ------------------------*- C++ -*-===//
+//===-- sanitizer_stack_store.h ---------------------------------*- C++ -*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
 #ifndef SANITIZER_PERSISTENT_ALLOCATOR_H
 #define SANITIZER_PERSISTENT_ALLOCATOR_H
 
-#include "sanitizer_internal_defs.h"
-#include "sanitizer_mutex.h"
 #include "sanitizer_atomic.h"
 #include "sanitizer_common.h"
+#include "sanitizer_internal_defs.h"
+#include "sanitizer_mutex.h"
 
 namespace __sanitizer {
 
@@ -105,6 +105,6 @@ void PersistentAllocator<T>::TestOnlyUnmap() {
   internal_memset(this, 0, sizeof(*this));
 }
 
-} // namespace __sanitizer
+}  // namespace __sanitizer
 
-#endif // SANITIZER_PERSISTENT_ALLOCATOR_H
+#endif  // SANITIZER_PERSISTENT_ALLOCATOR_H
index 0285545..7f9220d 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "sanitizer_common.h"
 #include "sanitizer_hash.h"
-#include "sanitizer_persistent_allocator.h"
+#include "sanitizer_stack_store.h"
 #include "sanitizer_stackdepotbase.h"
 
 namespace __sanitizer {
index 6d1b481..c4ab704 100644 (file)
@@ -87,7 +87,6 @@ source_set("sources") {
     "sanitizer_mutex.cpp",
     "sanitizer_mutex.h",
     "sanitizer_netbsd.cpp",
-    "sanitizer_persistent_allocator.h",
     "sanitizer_placement_new.h",
     "sanitizer_platform.h",
     "sanitizer_platform_interceptors.h",
@@ -115,6 +114,7 @@ source_set("sources") {
     "sanitizer_report_decorator.h",
     "sanitizer_ring_buffer.h",
     "sanitizer_solaris.cpp",
+    "sanitizer_stack_store.h",
     "sanitizer_stackdepot.cpp",
     "sanitizer_stackdepot.h",
     "sanitizer_stackdepotbase.h",