We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dbdb7c commit e686077Copy full SHA for e686077
Cargo.toml
@@ -95,6 +95,8 @@ object_pinning = []
95
immix_no_defrag = []
96
# Reduce block size for ImmixSpace. This mitigates fragmentation when defrag is disabled.
97
immix_smaller_block = []
98
+# Zero the unmarked lines after a GC cycle in immix. This helps debug untraced objects.
99
+immix_zero_on_release = []
100
101
# Run sanity GC
102
sanity = []
src/policy/immix/block.rs
@@ -240,6 +240,10 @@ impl Block {
240
if prev_line_is_marked {
241
holes += 1;
242
}
243
+
244
+ #[cfg(feature = "immix_zero_on_release")]
245
+ crate::util::memory::zero(line.start(), Line::BYTES);
246
247
prev_line_is_marked = false;
248
249
0 commit comments