src/share/vm/services/gcNotifier.cpp

changeset 3471
bf864f701a4a
parent 3027
87e40b34bc2b
child 3549
1891640ca63f
     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);

mercurial