1.1 --- a/src/share/vm/compiler/disassembler.cpp Wed Dec 08 04:50:35 2010 -0800 1.2 +++ b/src/share/vm/compiler/disassembler.cpp Wed Dec 08 17:50:49 2010 -0800 1.3 @@ -466,5 +466,18 @@ 1.4 env.set_total_ticks(total_bucket_count); 1.5 } 1.6 1.7 + // Print constant table. 1.8 + if (nm->consts_size() > 0) { 1.9 + nm->print_nmethod_labels(env.output(), nm->consts_begin()); 1.10 + int offset = 0; 1.11 + for (address p = nm->consts_begin(); p < nm->consts_end(); p += 4, offset += 4) { 1.12 + if ((offset % 8) == 0) { 1.13 + env.output()->print_cr(" " INTPTR_FORMAT " (offset: %4d): " PTR32_FORMAT " " PTR64_FORMAT, (intptr_t) p, offset, *((int32_t*) p), *((int64_t*) p)); 1.14 + } else { 1.15 + env.output()->print_cr(" " INTPTR_FORMAT " (offset: %4d): " PTR32_FORMAT, (intptr_t) p, offset, *((int32_t*) p)); 1.16 + } 1.17 + } 1.18 + } 1.19 + 1.20 env.decode_instructions(p, end); 1.21 }