[PATCH] D40627: [asan] Use linker initialization for the allocator
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 13 16:07:58 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL320660: [asan] Use linker initialization for the allocator (authored by kuba.brecka, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D40627?vs=124984&id=126863#toc
Repository:
rL LLVM
https://reviews.llvm.org/D40627
Files:
compiler-rt/trunk/lib/asan/asan_allocator.cc
Index: compiler-rt/trunk/lib/asan/asan_allocator.cc
===================================================================
--- compiler-rt/trunk/lib/asan/asan_allocator.cc
+++ compiler-rt/trunk/lib/asan/asan_allocator.cc
@@ -274,9 +274,9 @@
atomic_store(&max_redzone, options.max_redzone, memory_order_release);
}
- void Initialize(const AllocatorOptions &options) {
+ void InitLinkerInitialized(const AllocatorOptions &options) {
SetAllocatorMayReturnNull(options.may_return_null);
- allocator.Init(options.release_to_os_interval_ms);
+ allocator.InitLinkerInitialized(options.release_to_os_interval_ms);
SharedInitCode(options);
}
@@ -817,7 +817,7 @@
}
void InitializeAllocator(const AllocatorOptions &options) {
- instance.Initialize(options);
+ instance.InitLinkerInitialized(options);
}
void ReInitializeAllocator(const AllocatorOptions &options) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40627.126863.patch
Type: text/x-patch
Size: 894 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171214/0b6b7f51/attachment.bin>
More information about the llvm-commits
mailing list