mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 02:24:40 +02:00
8214217: [TESTBUG] runtime/appcds/LotsOfClasses.java failed with fragmented heap
Improve the fragmentation error message. Set java heap size in LotsOfClasses.java. Reviewed-by: iklam, ccheung
This commit is contained in:
parent
803b9a675b
commit
bc215804a4
2 changed files with 12 additions and 2 deletions
|
@ -683,7 +683,10 @@ size_t FileMapInfo::write_archive_heap_regions(GrowableArray<MemRegion> *heap_me
|
|||
int arr_len = heap_mem == NULL ? 0 : heap_mem->length();
|
||||
if(arr_len > max_num_regions) {
|
||||
fail_stop("Unable to write archive heap memory regions: "
|
||||
"number of memory regions exceeds maximum due to fragmentation");
|
||||
"number of memory regions exceeds maximum due to fragmentation."
|
||||
"Please increase java heap size "
|
||||
"(current MaxHeapSize is " SIZE_FORMAT ", InitialHeapSize is " SIZE_FORMAT ").",
|
||||
MaxHeapSize, InitialHeapSize);
|
||||
}
|
||||
|
||||
size_t total_size = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue