comparison src/share/vm/runtime/os.hpp @ 8854:754c24457b20

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 Wed, 27 Mar 2013 19:21:18 +0100
parents 203f64878aab
children 0c039865ef2b
comparison
equal deleted inserted replaced
8853:2e093b564241 8854:754c24457b20
182 assert(_processor_count > 0, "invalid processor count"); 182 assert(_processor_count > 0, "invalid processor count");
183 return _processor_count > 1; 183 return _processor_count > 1;
184 } 184 }
185 static julong available_memory(); 185 static julong available_memory();
186 static julong physical_memory(); 186 static julong physical_memory();
187 static julong allocatable_physical_memory(julong size); 187 static bool has_allocatable_memory_limit(julong* limit);
188 static bool is_server_class_machine(); 188 static bool is_server_class_machine();
189 189
190 // number of CPUs 190 // number of CPUs
191 static int processor_count() { 191 static int processor_count() {
192 return _processor_count; 192 return _processor_count;