[compiler-rt] [scudo] Move getResidentPages function (PR #183138)
Christopher Ferris via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 3 12:56:57 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
----------------
cferris1000 wrote:
I think the other death tests are still useful, so you should add them back because you still have the DCHECK.
https://github.com/llvm/llvm-project/pull/183138
More information about the llvm-commits
mailing list