8323428: Shenandoah: Unused memory in regions compacted during a full GC should be mangled
Reviewed-by: ysr, kdnilsen, shade
This commit is contained in:
parent
b86c3b7a68
commit
a7db4feceb
@ -910,6 +910,9 @@ public:
|
||||
// Make empty regions that have been allocated into regular
|
||||
if (r->is_empty() && live > 0) {
|
||||
r->make_regular_bypass();
|
||||
if (ZapUnusedHeapArea) {
|
||||
SpaceMangler::mangle_region(MemRegion(r->top(), r->end()));
|
||||
}
|
||||
}
|
||||
|
||||
// Reclaim regular regions that became empty
|
||||
|
Loading…
Reference in New Issue
Block a user