comparison src/share/vm/runtime/java.cpp @ 14518:d8041d695d19

Merged with jdk9/dev/hotspot changeset 3812c088b945
author twisti
date Tue, 11 Mar 2014 18:45:59 -0700
parents b00553202ec2 e6195383bcaf
children 4ca6dc0799b6
comparison
equal deleted inserted replaced
14141:f97c5ec83832 14518:d8041d695d19
53 #include "runtime/interfaceSupport.hpp" 53 #include "runtime/interfaceSupport.hpp"
54 #include "runtime/java.hpp" 54 #include "runtime/java.hpp"
55 #include "runtime/memprofiler.hpp" 55 #include "runtime/memprofiler.hpp"
56 #include "runtime/sharedRuntime.hpp" 56 #include "runtime/sharedRuntime.hpp"
57 #include "runtime/statSampler.hpp" 57 #include "runtime/statSampler.hpp"
58 #include "runtime/sweeper.hpp"
58 #include "runtime/task.hpp" 59 #include "runtime/task.hpp"
59 #include "runtime/thread.inline.hpp" 60 #include "runtime/thread.inline.hpp"
60 #include "runtime/timer.hpp" 61 #include "runtime/timer.hpp"
61 #include "runtime/vm_operations.hpp" 62 #include "runtime/vm_operations.hpp"
62 #include "services/memReporter.hpp" 63 #include "services/memReporter.hpp"
97 #include "opto/compile.hpp" 98 #include "opto/compile.hpp"
98 #include "opto/indexSet.hpp" 99 #include "opto/indexSet.hpp"
99 #include "opto/runtime.hpp" 100 #include "opto/runtime.hpp"
100 #endif 101 #endif
101 102
102 #ifndef USDT2
103 HS_DTRACE_PROBE_DECL(hotspot, vm__shutdown);
104 #endif /* !USDT2 */
105 103
106 #ifndef PRODUCT 104 #ifndef PRODUCT
107 105
108 // Statistics printing (method invocation histogram) 106 // Statistics printing (method invocation histogram)
109 107
218 AllocStats alloc_stats; 216 AllocStats alloc_stats;
219 217
220 218
221 219
222 // General statistics printing (profiling ...) 220 // General statistics printing (profiling ...)
223
224 void print_statistics() { 221 void print_statistics() {
225
226 #ifdef ASSERT 222 #ifdef ASSERT
227 223
228 if (CountRuntimeCalls) { 224 if (CountRuntimeCalls) {
229 extern Histogram *RuntimeHistogram; 225 extern Histogram *RuntimeHistogram;
230 RuntimeHistogram->print(); 226 RuntimeHistogram->print();
318 if (PrintCodeCache) { 314 if (PrintCodeCache) {
319 MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag); 315 MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
320 CodeCache::print(); 316 CodeCache::print();
321 } 317 }
322 318
319 if (PrintMethodFlushingStatistics) {
320 NMethodSweeper::print();
321 }
322
323 if (PrintCodeCache2) { 323 if (PrintCodeCache2) {
324 MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag); 324 MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
325 CodeCache::print_internals(); 325 CodeCache::print_internals();
326 } 326 }
327 327
383 } 383 }
384 384
385 if (PrintCodeCache) { 385 if (PrintCodeCache) {
386 MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag); 386 MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
387 CodeCache::print(); 387 CodeCache::print();
388 }
389
390 if (PrintMethodFlushingStatistics) {
391 NMethodSweeper::print();
388 } 392 }
389 393
390 #ifdef COMPILER2 394 #ifdef COMPILER2
391 if (PrintPreciseBiasedLockingStatistics) { 395 if (PrintPreciseBiasedLockingStatistics) {
392 OptoRuntime::print_named_counters(); 396 OptoRuntime::print_named_counters();
608 ShouldNotReachHere(); 612 ShouldNotReachHere();
609 } 613 }
610 614
611 void notify_vm_shutdown() { 615 void notify_vm_shutdown() {
612 // For now, just a dtrace probe. 616 // For now, just a dtrace probe.
613 #ifndef USDT2 617 HOTSPOT_VM_SHUTDOWN();
614 HS_DTRACE_PROBE(hotspot, vm__shutdown);
615 HS_DTRACE_WORKAROUND_TAIL_CALL_BUG(); 618 HS_DTRACE_WORKAROUND_TAIL_CALL_BUG();
616 #else /* USDT2 */
617 HOTSPOT_VM_SHUTDOWN();
618 #endif /* USDT2 */
619 } 619 }
620 620
621 void vm_direct_exit(int code) { 621 void vm_direct_exit(int code) {
622 notify_vm_shutdown(); 622 notify_vm_shutdown();
623 os::wait_for_keypress_at_exit(); 623 os::wait_for_keypress_at_exit();