Mercurial > hg > graal-compiler
comparison src/share/vm/gc_implementation/parallelScavenge/gcTaskThread.cpp @ 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 | 6d7d0790074d |
children | b9a9ed0f8eeb |
comparison
equal
deleted
inserted
replaced
6174:74533f63b116 | 6197:d2a62e0f25eb |
---|---|
44 { | 44 { |
45 if (!os::create_thread(this, os::pgc_thread)) | 45 if (!os::create_thread(this, os::pgc_thread)) |
46 vm_exit_out_of_memory(0, "Cannot create GC thread. Out of system resources."); | 46 vm_exit_out_of_memory(0, "Cannot create GC thread. Out of system resources."); |
47 | 47 |
48 if (PrintGCTaskTimeStamps) { | 48 if (PrintGCTaskTimeStamps) { |
49 _time_stamps = NEW_C_HEAP_ARRAY(GCTaskTimeStamp, GCTaskTimeStampEntries ); | 49 _time_stamps = NEW_C_HEAP_ARRAY(GCTaskTimeStamp, GCTaskTimeStampEntries, mtGC); |
50 | 50 |
51 guarantee(_time_stamps != NULL, "Sanity"); | 51 guarantee(_time_stamps != NULL, "Sanity"); |
52 } | 52 } |
53 set_id(which); | 53 set_id(which); |
54 set_name("GC task thread#%d (ParallelGC)", which); | 54 set_name("GC task thread#%d (ParallelGC)", which); |
55 } | 55 } |
56 | 56 |
57 GCTaskThread::~GCTaskThread() { | 57 GCTaskThread::~GCTaskThread() { |
58 if (_time_stamps != NULL) { | 58 if (_time_stamps != NULL) { |
59 FREE_C_HEAP_ARRAY(GCTaskTimeStamp, _time_stamps); | 59 FREE_C_HEAP_ARRAY(GCTaskTimeStamp, _time_stamps, mtGC); |
60 } | 60 } |
61 } | 61 } |
62 | 62 |
63 void GCTaskThread::start() { | 63 void GCTaskThread::start() { |
64 os::start_thread(this); | 64 os::start_thread(this); |