Mercurial > hg > graal-compiler
comparison src/os/linux/vm/os_linux.hpp @ 6275:957c266d8bc5
Merge with http://hg.openjdk.java.net/hsx/hsx24/hotspot/
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 21 Aug 2012 10:39:19 +0200 |
parents | d2a62e0f25eb |
children | fa9253dcd4df |
comparison
equal
deleted
inserted
replaced
5891:fd8832ae511d | 6275:957c266d8bc5 |
---|---|
86 | 86 |
87 static void rebuild_cpu_to_node_map(); | 87 static void rebuild_cpu_to_node_map(); |
88 static GrowableArray<int>* cpu_to_node() { return _cpu_to_node; } | 88 static GrowableArray<int>* cpu_to_node() { return _cpu_to_node; } |
89 | 89 |
90 static bool hugetlbfs_sanity_check(bool warn, size_t page_size); | 90 static bool hugetlbfs_sanity_check(bool warn, size_t page_size); |
91 | |
92 static void print_full_memory_info(outputStream* st); | |
93 static void print_distro_info(outputStream* st); | |
94 static void print_libversion_info(outputStream* st); | |
91 | 95 |
92 public: | 96 public: |
93 static void init_thread_fpu_state(); | 97 static void init_thread_fpu_state(); |
94 static int get_fpu_control_word(); | 98 static int get_fpu_control_word(); |
95 static void set_fpu_control_word(int fpu_control); | 99 static void set_fpu_control_word(int fpu_control); |
281 } | 285 } |
282 static int get_node_by_cpu(int cpu_id); | 286 static int get_node_by_cpu(int cpu_id); |
283 }; | 287 }; |
284 | 288 |
285 | 289 |
286 class PlatformEvent : public CHeapObj { | 290 class PlatformEvent : public CHeapObj<mtInternal> { |
287 private: | 291 private: |
288 double CachePad [4] ; // increase odds that _mutex is sole occupant of cache line | 292 double CachePad [4] ; // increase odds that _mutex is sole occupant of cache line |
289 volatile int _Event ; | 293 volatile int _Event ; |
290 volatile int _nParked ; | 294 volatile int _nParked ; |
291 pthread_mutex_t _mutex [1] ; | 295 pthread_mutex_t _mutex [1] ; |
316 int TryPark () ; | 320 int TryPark () ; |
317 int park (jlong millis) ; | 321 int park (jlong millis) ; |
318 void SetAssociation (Thread * a) { _Assoc = a ; } | 322 void SetAssociation (Thread * a) { _Assoc = a ; } |
319 } ; | 323 } ; |
320 | 324 |
321 class PlatformParker : public CHeapObj { | 325 class PlatformParker : public CHeapObj<mtInternal> { |
322 protected: | 326 protected: |
323 pthread_mutex_t _mutex [1] ; | 327 pthread_mutex_t _mutex [1] ; |
324 pthread_cond_t _cond [1] ; | 328 pthread_cond_t _cond [1] ; |
325 | 329 |
326 public: // TODO-FIXME: make dtor private | 330 public: // TODO-FIXME: make dtor private |