Mercurial > hg > truffle
comparison src/share/vm/services/memoryManager.hpp @ 4844:bf864f701a4a
7066129: GarbageCollectorMXBean#getLastGcInfo leaks native memory
Summary: Make GCStatInfo a resource object
Reviewed-by: phh, coleenp
author | dsamersoff |
---|---|
date | Wed, 25 Jan 2012 02:29:05 +0400 |
parents | 78542e2b5e35 |
children | d2a62e0f25eb |
comparison
equal
deleted
inserted
replaced
4842:583b428aa858 | 4844:bf864f701a4a |
---|---|
106 | 106 |
107 MemoryManager::Name kind() { return MemoryManager::CodeCache; } | 107 MemoryManager::Name kind() { return MemoryManager::CodeCache; } |
108 const char* name() { return "CodeCacheManager"; } | 108 const char* name() { return "CodeCacheManager"; } |
109 }; | 109 }; |
110 | 110 |
111 class GCStatInfo : public CHeapObj { | 111 class GCStatInfo : public ResourceObj { |
112 private: | 112 private: |
113 size_t _index; | 113 size_t _index; |
114 jlong _start_time; | 114 jlong _start_time; |
115 jlong _end_time; | 115 jlong _end_time; |
116 | 116 |