[compiler-rt] [scudo] Refactor store() and retrieve(). (PR #102024)

via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 5 11:48:33 PDT 2024


================
@@ -65,11 +65,10 @@ template <typename Config> static Header *getHeader(const void *Ptr) {
 
 } // namespace LargeBlock
 
-static inline void unmap(LargeBlock::Header *H) {
-  // Note that the `H->MapMap` is stored on the pages managed by itself. Take
+static inline void unmap(MemMapT &MemMap) {
+  // Note that header `MemMap`s are stored on the pages managed by itself. Take
   // over the ownership before unmap() so that any operation along with unmap()
   // won't touch inaccessible pages.
----------------
ChiaHungDuan wrote:

The comment is no longer the issue. Let's remove it

https://github.com/llvm/llvm-project/pull/102024


More information about the llvm-commits mailing list