comparison src/share/vm/runtime/os.hpp @ 8845:1b90c7607451

2178143: JVM crashes if the number of bound CPUs changed during runtime Summary: Supply a new flag -XX:+AssumeMP to workaround the problem. With the flag is turned on, assume VM run on MP platform so is_MP() will return true that sync calls will not skip away. Reviewed-by: dholmes, acorn, dcubed, jmasa Contributed-by: yumin.qi@oracle.com
author minqi
date Wed, 27 Mar 2013 17:03:19 -0700
parents 203f64878aab
children 0c039865ef2b
comparison
equal deleted inserted replaced
8839:b601102d00c8 8845:1b90c7607451
178 static char* iso8601_time(char* buffer, size_t buffer_length); 178 static char* iso8601_time(char* buffer, size_t buffer_length);
179 179
180 // Interface for detecting multiprocessor system 180 // Interface for detecting multiprocessor system
181 static inline bool is_MP() { 181 static inline bool is_MP() {
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 || AssumeMP;
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 julong allocatable_physical_memory(julong size);
188 static bool is_server_class_machine(); 188 static bool is_server_class_machine();