Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/os.hpp @ 8883:b9a918201d47
Merge with hsx25
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Sat, 06 Apr 2013 20:04:06 +0200 |
parents | b8f261ba79c6 0c039865ef2b |
children | 836a62f43af9 |
comparison
equal
deleted
inserted
replaced
8660:d47b52b0ff68 | 8883:b9a918201d47 |
---|---|
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 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; |