comparison src/share/vm/runtime/arguments.hpp @ 5982:124fc080dc67

7112912: Message "Error occurred during initialization of VM" on boxes with lots of RAM Summary: Ergonomics now also takes available virtual memory into account when deciding for a heap size. The helper method to determine the maximum allocatable memory block now uses the appropriate OS specific calls to retrieve available virtual memory for the java process. In 32 bit environments this method now also searches for the maximum actually reservable amount of memory. Merge previously separate implementations for Linux/BSD/Solaris into a single method. Reviewed-by: jmasa, tamao
author tschatzl
date Tue, 18 Apr 2017 04:54:54 +0100
parents f49c3e79b676
children b86041bd7b99
comparison
equal deleted inserted replaced
24:17bb5c5800eb 25:0b79ea460062
310 // Garbage-First (UseG1GC) 310 // Garbage-First (UseG1GC)
311 static void set_g1_gc_flags(); 311 static void set_g1_gc_flags();
312 // GC ergonomics 312 // GC ergonomics
313 static void set_ergonomics_flags(); 313 static void set_ergonomics_flags();
314 static void set_shared_spaces_flags(); 314 static void set_shared_spaces_flags();
315 // limits the given memory size by the maximum amount of memory this process is
316 // currently allowed to allocate or reserve.
317 static julong limit_by_allocatable_memory(julong size);
315 // Setup HeapBaseMinAddress 318 // Setup HeapBaseMinAddress
316 static void set_heap_base_min_address(); 319 static void set_heap_base_min_address();
317 // Setup heap size 320 // Setup heap size
318 static void set_heap_size(); 321 static void set_heap_size();
319 // Based on automatic selection criteria, should the 322 // Based on automatic selection criteria, should the