Skip to content

Commit fa58f32

Browse files
committed
[NFC][HWASAN] Rename AllocatorSwallowThreadLocalCache
1 parent c46bc0d commit fa58f32

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler-rt/lib/hwasan/hwasan_allocator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ void HwasanAllocatorLock() { allocator.ForceLock(); }
165165

166166
void HwasanAllocatorUnlock() { allocator.ForceUnlock(); }
167167

168-
void AllocatorSwallowThreadLocalCache(AllocatorCache *cache) {
168+
void AllocatorThreadFinish(AllocatorCache *cache) {
169169
allocator.SwallowCache(cache);
170170
}
171171

compiler-rt/lib/hwasan/hwasan_allocator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ typedef SizeClassAllocator64<AP64> PrimaryAllocator;
8888
typedef CombinedAllocator<PrimaryAllocator> Allocator;
8989
typedef Allocator::AllocatorCache AllocatorCache;
9090

91-
void AllocatorSwallowThreadLocalCache(AllocatorCache *cache);
91+
void AllocatorThreadFinish(AllocatorCache *cache);
9292

9393
class HwasanChunkView {
9494
public:

compiler-rt/lib/hwasan/hwasan_thread.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ void Thread::ClearShadowForThreadStackAndTLS() {
100100
void Thread::Destroy() {
101101
if (flags()->verbose_threads)
102102
Print("Destroying: ");
103-
AllocatorSwallowThreadLocalCache(allocator_cache());
103+
AllocatorThreadFinish(allocator_cache());
104104
ClearShadowForThreadStackAndTLS();
105105
if (heap_allocations_)
106106
heap_allocations_->Delete();

0 commit comments

Comments
 (0)