[compiler-rt] ce00dde - [scudo] Mark page status in getStats in secondary (#67588)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 2 15:13:37 PDT 2023
Author: ChiaHungDuan
Date: 2023-10-03T06:13:32+08:00
New Revision: ce00dde80e5c2ac3bd34346c2c75511b4c96708b
URL: https://github.com/llvm/llvm-project/commit/ce00dde80e5c2ac3bd34346c2c75511b4c96708b
DIFF: https://github.com/llvm/llvm-project/commit/ce00dde80e5c2ac3bd34346c2c75511b4c96708b.diff
LOG: [scudo] Mark page status in getStats in secondary (#67588)
Cache entry marked with [R] indicates that the pages have been released
by releaseToOS().
Added:
Modified:
compiler-rt/lib/scudo/standalone/secondary.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/scudo/standalone/secondary.h b/compiler-rt/lib/scudo/standalone/secondary.h
index d0890d1c5e2d3d5..c89e6a95f5a68a4 100644
--- a/compiler-rt/lib/scudo/standalone/secondary.h
+++ b/compiler-rt/lib/scudo/standalone/secondary.h
@@ -174,9 +174,9 @@ template <typename Config> class MapAllocatorCache {
if (!Entry.isValid())
continue;
Str->append("StartBlockAddress: 0x%zx, EndBlockAddress: 0x%zx, "
- "BlockSize: %zu\n",
+ "BlockSize: %zu %s\n",
Entry.CommitBase, Entry.CommitBase + Entry.CommitSize,
- Entry.CommitSize);
+ Entry.CommitSize, Entry.Time == 0 ? "[R]" : "");
}
}
More information about the llvm-commits
mailing list