[compiler-rt] [scudo] [MTE] resize stack depot for allocation ring buffer (PR #74515)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 13 15:24:57 PST 2023
================
@@ -1526,6 +1573,10 @@ class Allocator {
RawRingBufferMap.getCapacity());
}
RawRingBuffer = nullptr;
+ if (RawStackDepot) {
+ RawStackDepotMap.unmap(RawStackDepotMap.getBase(),
+ RawStackDepotMap.getCapacity());
+ }
----------------
ChiaHungDuan wrote:
As the question mentioned by @cferris1000, I'm not sure if we want this `RawStackDepot`. I would consider having a `getStackDepot()` and do all the necessary shifting and casting. Then we only need to check if `RawStackDepotMap.isAllocated()` here
https://github.com/llvm/llvm-project/pull/74515
More information about the llvm-commits
mailing list