--- a/hotspot/src/share/vm/code/exceptionHandlerTable.cpp Thu Oct 08 10:25:45 2015 +0000
+++ b/hotspot/src/share/vm/code/exceptionHandlerTable.cpp Thu Oct 08 12:49:30 2015 -1000
@@ -102,9 +102,12 @@
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());
+ 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);