src/hotspot/share/memory/filemap.cpp
changeset 52811 ff04b71bf6f1
parent 52702 10c6e9066819
child 53884 1a7b57d02107
equal deleted inserted replaced
52810:a2500cf11ee5 52811:ff04b71bf6f1
   681   assert(max_num_regions <= 2, "Only support maximum 2 memory regions");
   681   assert(max_num_regions <= 2, "Only support maximum 2 memory regions");
   682 
   682 
   683   int arr_len = heap_mem == NULL ? 0 : heap_mem->length();
   683   int arr_len = heap_mem == NULL ? 0 : heap_mem->length();
   684   if(arr_len > max_num_regions) {
   684   if(arr_len > max_num_regions) {
   685     fail_stop("Unable to write archive heap memory regions: "
   685     fail_stop("Unable to write archive heap memory regions: "
   686               "number of memory regions exceeds maximum due to fragmentation."
   686               "number of memory regions exceeds maximum due to fragmentation. "
   687               "Please increase java heap size "
   687               "Please increase java heap size "
   688               "(current MaxHeapSize is " SIZE_FORMAT ", InitialHeapSize is " SIZE_FORMAT ").",
   688               "(current MaxHeapSize is " SIZE_FORMAT ", InitialHeapSize is " SIZE_FORMAT ").",
   689               MaxHeapSize, InitialHeapSize);
   689               MaxHeapSize, InitialHeapSize);
   690   }
   690   }
   691 
   691