< prev index next >
src/share/vm/code/nmethod.cpp
Print this page
rev 12993 : 8180423: Remove flag UseRelocIndex
Reviewed-by: TBD
@@ -2355,30 +2355,10 @@
void nmethod::print_relocations() {
ResourceMark m; // in case methods get printed via the debugger
tty->print_cr("relocations:");
RelocIterator iter(this);
iter.print();
- if (UseRelocIndex) {
- jint* index_end = (jint*)relocation_end() - 1;
- jint index_size = *index_end;
- jint* index_start = (jint*)( (address)index_end - index_size );
- tty->print_cr(" index @" INTPTR_FORMAT ": index_size=%d", p2i(index_start), index_size);
- if (index_size > 0) {
- jint* ip;
- for (ip = index_start; ip+2 <= index_end; ip += 2)
- tty->print_cr(" (%d %d) addr=" INTPTR_FORMAT " @" INTPTR_FORMAT,
- ip[0],
- ip[1],
- p2i(header_end()+ip[0]),
- p2i(relocation_begin()-1+ip[1]));
- for (; ip < index_end; ip++)
- tty->print_cr(" (%d ?)", ip[0]);
- tty->print_cr(" @" INTPTR_FORMAT ": index_size=%d", p2i(ip), *ip);
- ip++;
- tty->print_cr("reloc_end @" INTPTR_FORMAT ":", p2i(ip));
- }
- }
}
void nmethod::print_pcs() {
ResourceMark m; // in case methods get printed via debugger
< prev index next >