mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
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:
parent
ea532aa075
commit
a0a108fb01
19 changed files with 489 additions and 35 deletions
|
@ -193,6 +193,8 @@ void HeapShared::archive_java_heap_objects(GrowableArray<MemRegion> *closed,
|
|||
return;
|
||||
}
|
||||
|
||||
G1HeapVerifier::verify_ready_for_archiving();
|
||||
|
||||
{
|
||||
NoSafepointVerifier nsv;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue