6827505: sizing logic for vtable and itable stubs needs self-check

Asserts and comments to help maintain the correct sizing of certain stubs

Reviewed-by: kvn
This commit is contained in:
John R Rose 2009-04-08 00:12:59 -07:00
parent ca3a3504be
commit 318da3f68c
4 changed files with 130 additions and 2 deletions

View file

@ -107,13 +107,11 @@ address VtableStubs::create_stub(bool is_vtable_stub, int vtable_index, methodOo
s = create_itable_stub(vtable_index);
}
enter(is_vtable_stub, vtable_index, s);
#ifndef PRODUCT
if (PrintAdapterHandlers) {
tty->print_cr("Decoding VtableStub %s[%d]@%d",
is_vtable_stub? "vtbl": "itbl", vtable_index, VtableStub::receiver_location());
Disassembler::decode(s->code_begin(), s->code_end());
}
#endif
}
return s->entry_point();
}