comparison src/share/vm/runtime/java.cpp @ 13086:096c224171c4

Merge with http://hg.openjdk.java.net/hsx/hsx25/hotspot/
author Doug Simon <doug.simon@oracle.com>
date Wed, 20 Nov 2013 00:10:38 +0100
parents 359f7e70ae7f 5ccbab1c69f3
children b00553202ec2
comparison
equal deleted inserted replaced
12782:92b7ec34ddfa 13086:096c224171c4
184 collected_profiled_methods = new GrowableArray<Method*>(1024); 184 collected_profiled_methods = new GrowableArray<Method*>(1024);
185 SystemDictionary::methods_do(collect_profiled_methods); 185 SystemDictionary::methods_do(collect_profiled_methods);
186 collected_profiled_methods->sort(&compare_methods); 186 collected_profiled_methods->sort(&compare_methods);
187 187
188 int count = collected_profiled_methods->length(); 188 int count = collected_profiled_methods->length();
189 int total_size = 0;
189 if (count > 0) { 190 if (count > 0) {
190 for (int index = 0; index < count; index++) { 191 for (int index = 0; index < count; index++) {
191 Method* m = collected_profiled_methods->at(index); 192 Method* m = collected_profiled_methods->at(index);
192 ttyLocker ttyl; 193 ttyLocker ttyl;
193 tty->print_cr("------------------------------------------------------------------------"); 194 tty->print_cr("------------------------------------------------------------------------");
194 //m->print_name(tty); 195 //m->print_name(tty);
195 m->print_invocation_count(); 196 m->print_invocation_count();
197 tty->print_cr(" mdo size: %d bytes", m->method_data()->size_in_bytes());
196 tty->cr(); 198 tty->cr();
199 // Dump data on parameters if any
200 if (m->method_data() != NULL && m->method_data()->parameters_type_data() != NULL) {
201 tty->fill_to(2);
202 m->method_data()->parameters_type_data()->print_data_on(tty);
203 }
197 m->print_codes(); 204 m->print_codes();
205 total_size += m->method_data()->size_in_bytes();
198 } 206 }
199 tty->print_cr("------------------------------------------------------------------------"); 207 tty->print_cr("------------------------------------------------------------------------");
208 tty->print_cr("Total MDO size: %d bytes", total_size);
200 } 209 }
201 } 210 }
202 211
203 void print_bytecode_count() { 212 void print_bytecode_count() {
204 if (CountBytecodes || TraceBytecodes || StopInterpreterAt) { 213 if (CountBytecodes || TraceBytecodes || StopInterpreterAt) {