1.1 --- a/src/share/vm/services/gcNotifier.cpp Mon Jan 23 17:45:32 2012 -0800 1.2 +++ b/src/share/vm/services/gcNotifier.cpp Wed Jan 25 02:29:05 2012 +0400 1.3 @@ -44,7 +44,8 @@ 1.4 // Make a copy of the last GC statistics 1.5 // GC may occur between now and the creation of the notification 1.6 int num_pools = MemoryService::num_memory_pools(); 1.7 - GCStatInfo* stat = new GCStatInfo(num_pools); 1.8 + // stat is deallocated inside GCNotificationRequest 1.9 + GCStatInfo* stat = new(ResourceObj::C_HEAP) GCStatInfo(num_pools); 1.10 mgr->get_last_gc_stat(stat); 1.11 GCNotificationRequest *request = new GCNotificationRequest(os::javaTimeMillis(),mgr,action,cause,stat); 1.12 addRequest(request);