[compiler-rt] [scudo] Move getResidentPages function (PR #183138)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 4 00:45:58 PST 2026
================
@@ -75,6 +75,14 @@ TEST(ScudoMapDeathTest, MapWithGuardUnmap) {
MemMap.unmap();
}
+// These death tests only fail when debugging is enabled.
+#if SCUDO_DEBUG && SCUDO_LINUX
+TEST(ScudoMapDeathTest, ResidentPagesNotMapped) {
+ scudo::MemMapT MemMap;
+ ASSERT_EQ(MemMap.getResidentPages(), 0);
+}
+#endif
----------------
ChiaHungDuan wrote:
Not sure if this suggests adding back getResidentPages on out-of-bound range, if so, @sadafebrahimi please ignore my opinion before :)
https://github.com/llvm/llvm-project/pull/183138
More information about the llvm-commits
mailing list