< prev index next >

src/share/vm/code/exceptionHandlerTable.cpp

Print this page

        

*** 100,112 **** } void ExceptionHandlerTable::copy_to(nmethod* nm) { assert(size_in_bytes() == nm->handler_table_size(), "size of space allocated in nmethod incorrect"); ! memmove(nm->handler_table_begin(), _table, size_in_bytes()); } HandlerTableEntry* ExceptionHandlerTable::entry_for(int catch_pco, int handler_bci, int scope_depth) const { HandlerTableEntry* t = subtable_for(catch_pco); if (t != NULL) { int l = t->len(); --- 100,115 ---- } void ExceptionHandlerTable::copy_to(nmethod* nm) { assert(size_in_bytes() == nm->handler_table_size(), "size of space allocated in nmethod incorrect"); ! copy_bytes_to(nm->handler_table_begin()); } + void ExceptionHandlerTable::copy_bytes_to(address addr) { + memmove(addr, _table, size_in_bytes()); + } HandlerTableEntry* ExceptionHandlerTable::entry_for(int catch_pco, int handler_bci, int scope_depth) const { HandlerTableEntry* t = subtable_for(catch_pco); if (t != NULL) { int l = t->len();
< prev index next >