7066129: GarbageCollectorMXBean#getLastGcInfo leaks native memory

Make GCStatInfo a resource object

Reviewed-by: phh, coleenp
This commit is contained in:
Dmitry Samersoff 2012-01-25 02:29:05 +04:00
parent d0b33ef971
commit 501bad4fd6
4 changed files with 13 additions and 12 deletions

View file

@ -108,7 +108,7 @@ public:
const char* name() { return "CodeCacheManager"; }
};
class GCStatInfo : public CHeapObj {
class GCStatInfo : public ResourceObj {
private:
size_t _index;
jlong _start_time;