Index: Source/wtf/PartitionAlloc.cpp |
diff --git a/Source/wtf/PartitionAlloc.cpp b/Source/wtf/PartitionAlloc.cpp |
index 15c8286edef49b243c0d9d5658b9c32767d577ba..4348c2f3813a1f791bfccbc0e730a84460b2ca67 100644 |
--- a/Source/wtf/PartitionAlloc.cpp |
+++ b/Source/wtf/PartitionAlloc.cpp |
@@ -852,7 +852,7 @@ bool partitionReallocDirectMappedInPlace(PartitionRootGeneric* root, PartitionPa |
setSystemPagesAccessible(charPtr + currentSize, recommitSize); |
partitionRecommitSystemPages(root, charPtr + currentSize, recommitSize); |
-#ifndef NDEBUG |
+#if ENABLE(ASSERT) |
memset(charPtr + currentSize, kUninitializedByte, recommitSize); |
#endif |
} else { |
@@ -861,7 +861,7 @@ bool partitionReallocDirectMappedInPlace(PartitionRootGeneric* root, PartitionPa |
return false; |
} |
-#ifndef NDEBUG |
+#if ENABLE(ASSERT) |
// Write a new trailing cookie. |
partitionCookieWriteValue(charPtr + newSize - kCookieSize); |
#endif |