Mercurial > hg > graal-compiler
comparison src/os/bsd/vm/os_bsd.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 | f08d439fab8c |
children | fa9253dcd4df |
comparison
equal
deleted
inserted
replaced
6174:74533f63b116 | 6197:d2a62e0f25eb |
---|---|
310 } | 310 } |
311 static int get_node_by_cpu(int cpu_id); | 311 static int get_node_by_cpu(int cpu_id); |
312 }; | 312 }; |
313 | 313 |
314 | 314 |
315 class PlatformEvent : public CHeapObj { | 315 class PlatformEvent : public CHeapObj<mtInternal> { |
316 private: | 316 private: |
317 double CachePad [4] ; // increase odds that _mutex is sole occupant of cache line | 317 double CachePad [4] ; // increase odds that _mutex is sole occupant of cache line |
318 volatile int _Event ; | 318 volatile int _Event ; |
319 volatile int _nParked ; | 319 volatile int _nParked ; |
320 pthread_mutex_t _mutex [1] ; | 320 pthread_mutex_t _mutex [1] ; |
345 int TryPark () ; | 345 int TryPark () ; |
346 int park (jlong millis) ; | 346 int park (jlong millis) ; |
347 void SetAssociation (Thread * a) { _Assoc = a ; } | 347 void SetAssociation (Thread * a) { _Assoc = a ; } |
348 } ; | 348 } ; |
349 | 349 |
350 class PlatformParker : public CHeapObj { | 350 class PlatformParker : public CHeapObj<mtInternal> { |
351 protected: | 351 protected: |
352 pthread_mutex_t _mutex [1] ; | 352 pthread_mutex_t _mutex [1] ; |
353 pthread_cond_t _cond [1] ; | 353 pthread_cond_t _cond [1] ; |
354 | 354 |
355 public: // TODO-FIXME: make dtor private | 355 public: // TODO-FIXME: make dtor private |