comparison src/share/vm/oops/methodData.cpp @ 10376:a1ebd310d5c1

8014912: Restore PrintSharedSpaces functionality after NPG Summary: Added dumping of object sizes in CDS archive, sorted by MetaspaceObj::Type Reviewed-by: coleenp, acorn
author iklam
date Tue, 28 May 2013 16:36:19 -0700
parents 8df6ddda8090
children 836a62f43af9 d13d7aba8c12 abe03600372a
comparison
equal deleted inserted replaced
10353:9ea643afcaaf 10376:a1ebd310d5c1
386 // a method. 386 // a method.
387 387
388 MethodData* MethodData::allocate(ClassLoaderData* loader_data, methodHandle method, TRAPS) { 388 MethodData* MethodData::allocate(ClassLoaderData* loader_data, methodHandle method, TRAPS) {
389 int size = MethodData::compute_allocation_size_in_words(method); 389 int size = MethodData::compute_allocation_size_in_words(method);
390 390
391 return new (loader_data, size, false, THREAD) MethodData(method(), size, CHECK_NULL); 391 return new (loader_data, size, false, MetaspaceObj::MethodDataType, THREAD)
392 MethodData(method(), size, CHECK_NULL);
392 } 393 }
393 394
394 int MethodData::bytecode_cell_count(Bytecodes::Code code) { 395 int MethodData::bytecode_cell_count(Bytecodes::Code code) {
395 #if defined(COMPILER1) && !defined(COMPILER2) 396 #if defined(COMPILER1) && !defined(COMPILER2)
396 return no_profile_data; 397 return no_profile_data;