[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:56:46 PDT 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
<details>
<summary>Changes</summary>
Cache entry marked with [R] indicates that the pages have been released by releaseToOS().
---
Full diff: https://github.com/llvm/llvm-project/pull/67588.diff
1 Files Affected:
- (modified) compiler-rt/lib/scudo/standalone/secondary.h (+2-2)
``````````diff
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]" : " ");
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/67588
More information about the llvm-commits
mailing list