Mercurial > hg > truffle
comparison src/share/vm/services/gcNotifier.cpp @ 6275:957c266d8bc5
Merge with http://hg.openjdk.java.net/hsx/hsx24/hotspot/
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 21 Aug 2012 10:39:19 +0200 |
parents | d2a62e0f25eb |
children | da91efe96a93 |
comparison
equal
deleted
inserted
replaced
5891:fd8832ae511d | 6275:957c266d8bc5 |
---|---|
43 void GCNotifier::pushNotification(GCMemoryManager *mgr, const char *action, const char *cause) { | 43 void GCNotifier::pushNotification(GCMemoryManager *mgr, const char *action, const char *cause) { |
44 // Make a copy of the last GC statistics | 44 // Make a copy of the last GC statistics |
45 // GC may occur between now and the creation of the notification | 45 // GC may occur between now and the creation of the notification |
46 int num_pools = MemoryService::num_memory_pools(); | 46 int num_pools = MemoryService::num_memory_pools(); |
47 // stat is deallocated inside GCNotificationRequest | 47 // stat is deallocated inside GCNotificationRequest |
48 GCStatInfo* stat = new(ResourceObj::C_HEAP) GCStatInfo(num_pools); | 48 GCStatInfo* stat = new(ResourceObj::C_HEAP, mtGC) GCStatInfo(num_pools); |
49 mgr->get_last_gc_stat(stat); | 49 mgr->get_last_gc_stat(stat); |
50 GCNotificationRequest *request = new GCNotificationRequest(os::javaTimeMillis(),mgr,action,cause,stat); | 50 GCNotificationRequest *request = new GCNotificationRequest(os::javaTimeMillis(),mgr,action,cause,stat); |
51 addRequest(request); | 51 addRequest(request); |
52 } | 52 } |
53 | 53 |
161 JavaValue constructor_result(T_VOID); | 161 JavaValue constructor_result(T_VOID); |
162 JavaCallArguments constructor_args(16); | 162 JavaCallArguments constructor_args(16); |
163 constructor_args.push_oop(gcInfo_instance); | 163 constructor_args.push_oop(gcInfo_instance); |
164 constructor_args.push_oop(getGcInfoBuilder(gcManager,THREAD)); | 164 constructor_args.push_oop(getGcInfoBuilder(gcManager,THREAD)); |
165 constructor_args.push_long(gcStatInfo->gc_index()); | 165 constructor_args.push_long(gcStatInfo->gc_index()); |
166 constructor_args.push_long(gcStatInfo->start_time()); | 166 constructor_args.push_long(Management::ticks_to_ms(gcStatInfo->start_time())); |
167 constructor_args.push_long(gcStatInfo->end_time()); | 167 constructor_args.push_long(Management::ticks_to_ms(gcStatInfo->end_time())); |
168 constructor_args.push_oop(usage_before_gc_ah); | 168 constructor_args.push_oop(usage_before_gc_ah); |
169 constructor_args.push_oop(usage_after_gc_ah); | 169 constructor_args.push_oop(usage_after_gc_ah); |
170 constructor_args.push_oop(extra_array); | 170 constructor_args.push_oop(extra_array); |
171 | 171 |
172 JavaCalls::call_special(&constructor_result, | 172 JavaCalls::call_special(&constructor_result, |