[compiler-rt] [scudo] Mark page status in getStats in secondary (PR #67588)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 27 11:55:09 PDT 2023
https://github.com/ChiaHungDuan created https://github.com/llvm/llvm-project/pull/67588
Cache entry marked with [R] indicates that the pages have been released by releaseToOS().
>From 998cd8acc0a9bd37d33603ba74cc9acd73a66133 Mon Sep 17 00:00:00 2001
From: Chia-hung Duan <chiahungduan at google.com>
Date: Wed, 27 Sep 2023 18:51:32 +0000
Subject: [PATCH] [scudo] Mark page status in getStats in secondary
Cache entry marked with [R] indicates that the pages have been released
by releaseToOS().
---
compiler-rt/lib/scudo/standalone/secondary.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/compiler-rt/lib/scudo/standalone/secondary.h b/compiler-rt/lib/scudo/standalone/secondary.h
index d0890d1c5e2d3d5..9302c226cba0a26 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