[compiler-rt] [scudo] [MTE] resize stack depot for allocation ring buffer (PR #74515)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 12 20:29:28 PST 2023
================
@@ -917,8 +919,14 @@ class Allocator {
Primary.Options.clear(OptionBit::AddLargeAllocationSlack);
}
- const char *getStackDepotAddress() const {
- return reinterpret_cast<const char *>(&Depot);
+ const char *getStackDepotAddress() {
+ initThreadMaybe();
----------------
ChiaHungDuan wrote:
This is used to init thread local cache for allocation. Why do we need to call this function here?
https://github.com/llvm/llvm-project/pull/74515
More information about the llvm-commits
mailing list