src/share/vm/runtime/java.cpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
*** old/src/share/vm/runtime/java.cpp Wed Oct 2 17:55:41 2013
--- new/src/share/vm/runtime/java.cpp Wed Oct 2 17:55:41 2013
*** 120,130 ****
--- 120,130 ----
// This HandleMark prevents a huge amount of handles from being added
// to the metadata_handles() array on the thread.
HandleMark hm(thread);
methodHandle mh(thread, m);
if ((m->method_data() != NULL) &&
! (PrintMethodData || PrintMethodDataStats || CompilerOracle::should_print(mh))) {
collected_profiled_methods->push(m);
}
}
*** 181,202 ****
--- 181,211 ----
collected_profiled_methods = new GrowableArray<Method*>(1024);
SystemDictionary::methods_do(collect_profiled_methods);
collected_profiled_methods->sort(&compare_methods);
int count = collected_profiled_methods->length();
+ int total_size = 0;
if (count > 0) {
for (int index = 0; index < count; index++) {
Method* m = collected_profiled_methods->at(index);
+ if (PrintMethodData || CompilerOracle::should_print(m)) {
ttyLocker ttyl;
tty->print_cr("------------------------------------------------------------------------");
//m->print_name(tty);
m->print_invocation_count();
tty->cr();
m->print_codes();
}
+ if (PrintMethodDataStats) {
+ total_size += m->method_data()->size_in_bytes();
+ }
+ }
tty->print_cr("------------------------------------------------------------------------");
}
+ if (PrintMethodDataStats) {
+ tty->print_cr("Total MDO space = %d", total_size);
+ }
}
void print_bytecode_count() {
if (CountBytecodes || TraceBytecodes || StopInterpreterAt) {
tty->print_cr("[BytecodeCounter::counter_value = %d]", BytecodeCounter::counter_value());
src/share/vm/runtime/java.cpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File