8214388: CDS dumping fails with java heap fragmentation

Force a full GC with a single thread before writing heap archive regions

Reviewed-by: sjohanss, jiangli
This commit is contained in:
Ioi Lam 2018-12-03 22:27:24 -08:00
parent ea532aa075
commit a0a108fb01
19 changed files with 489 additions and 35 deletions

View file

@ -193,6 +193,8 @@ void HeapShared::archive_java_heap_objects(GrowableArray<MemRegion> *closed,
return;
}
G1HeapVerifier::verify_ready_for_archiving();
{
NoSafepointVerifier nsv;