Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/java.cpp @ 11096:71180a6e5080
7133260: AllocationProfiler uses space in metadata and doesn't seem to do anything useful.
Summary: Remove -Xaprof and Klass::_alloc_count & ArrayKlass::_alloc_size.
Reviewed-by: stefank, coleenp
author | jiangli |
---|---|
date | Wed, 03 Jul 2013 17:26:59 -0400 |
parents | f2110083203d |
children | 6b0fd0964b87 63147986a428 |
comparison
equal
deleted
inserted
replaced
11065:cedf20e2a655 | 11096:71180a6e5080 |
---|---|
40 #include "oops/method.hpp" | 40 #include "oops/method.hpp" |
41 #include "oops/objArrayOop.hpp" | 41 #include "oops/objArrayOop.hpp" |
42 #include "oops/oop.inline.hpp" | 42 #include "oops/oop.inline.hpp" |
43 #include "oops/symbol.hpp" | 43 #include "oops/symbol.hpp" |
44 #include "prims/jvmtiExport.hpp" | 44 #include "prims/jvmtiExport.hpp" |
45 #include "runtime/aprofiler.hpp" | |
46 #include "runtime/arguments.hpp" | 45 #include "runtime/arguments.hpp" |
47 #include "runtime/biasedLocking.hpp" | 46 #include "runtime/biasedLocking.hpp" |
48 #include "runtime/compilationPolicy.hpp" | 47 #include "runtime/compilationPolicy.hpp" |
49 #include "runtime/fprofiler.hpp" | 48 #include "runtime/fprofiler.hpp" |
50 #include "runtime/init.hpp" | 49 #include "runtime/init.hpp" |
507 if (Verbose) { | 506 if (Verbose) { |
508 ClassLoaderDataGraph::dump_on(gclog_or_tty); | 507 ClassLoaderDataGraph::dump_on(gclog_or_tty); |
509 } | 508 } |
510 } | 509 } |
511 | 510 |
512 | |
513 if (Arguments::has_alloc_profile()) { | |
514 HandleMark hm; | |
515 // Do one last collection to enumerate all the objects | |
516 // allocated since the last one. | |
517 Universe::heap()->collect(GCCause::_allocation_profiler); | |
518 AllocationProfiler::disengage(); | |
519 AllocationProfiler::print(0); | |
520 } | |
521 | |
522 if (PrintBytecodeHistogram) { | 511 if (PrintBytecodeHistogram) { |
523 BytecodeHistogram::print(); | 512 BytecodeHistogram::print(); |
524 } | 513 } |
525 | 514 |
526 if (JvmtiExport::should_post_thread_life()) { | 515 if (JvmtiExport::should_post_thread_life()) { |