comparison src/os/linux/vm/os_linux.hpp @ 6197:d2a62e0f25eb

6995781: Native Memory Tracking (Phase 1) 7151532: DCmd for hotspot native memory tracking Summary: Implementation of native memory tracking phase 1, which tracks VM native memory usage, and related DCmd Reviewed-by: acorn, coleenp, fparain
author zgu
date Thu, 28 Jun 2012 17:03:16 -0400
parents 7432b9db36ff
children fa9253dcd4df
comparison
equal deleted inserted replaced
6174:74533f63b116 6197:d2a62e0f25eb
285 } 285 }
286 static int get_node_by_cpu(int cpu_id); 286 static int get_node_by_cpu(int cpu_id);
287 }; 287 };
288 288
289 289
290 class PlatformEvent : public CHeapObj { 290 class PlatformEvent : public CHeapObj<mtInternal> {
291 private: 291 private:
292 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
293 volatile int _Event ; 293 volatile int _Event ;
294 volatile int _nParked ; 294 volatile int _nParked ;
295 pthread_mutex_t _mutex [1] ; 295 pthread_mutex_t _mutex [1] ;
320 int TryPark () ; 320 int TryPark () ;
321 int park (jlong millis) ; 321 int park (jlong millis) ;
322 void SetAssociation (Thread * a) { _Assoc = a ; } 322 void SetAssociation (Thread * a) { _Assoc = a ; }
323 } ; 323 } ;
324 324
325 class PlatformParker : public CHeapObj { 325 class PlatformParker : public CHeapObj<mtInternal> {
326 protected: 326 protected:
327 pthread_mutex_t _mutex [1] ; 327 pthread_mutex_t _mutex [1] ;
328 pthread_cond_t _cond [1] ; 328 pthread_cond_t _cond [1] ;
329 329
330 public: // TODO-FIXME: make dtor private 330 public: // TODO-FIXME: make dtor private