mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 03:54:33 +02:00
6875329: fix for 6795465 broke exception handler cloning
Reviewed-by: kvn
This commit is contained in:
parent
2a362d8b87
commit
9966801c6c
2 changed files with 8 additions and 5 deletions
|
@ -950,15 +950,17 @@ void LIRGenerator::do_NewMultiArray(NewMultiArray* x) {
|
|||
}
|
||||
|
||||
// Evaluate state_for early since it may emit code.
|
||||
CodeEmitInfo* info = state_for(x, x->state());
|
||||
CodeEmitInfo* patching_info = NULL;
|
||||
if (!x->klass()->is_loaded() || PatchALot) {
|
||||
patching_info = state_for(x, x->state_before());
|
||||
|
||||
// cannot re-use same xhandlers for multiple CodeEmitInfos, so
|
||||
// clone all handlers.
|
||||
// clone all handlers. This is handled transparently in other
|
||||
// places by the CodeEmitInfo cloning logic but is handled
|
||||
// specially here because a stub isn't being used.
|
||||
x->set_exception_handlers(new XHandlers(x->exception_handlers()));
|
||||
}
|
||||
CodeEmitInfo* info = state_for(x, x->state());
|
||||
|
||||
i = dims->length();
|
||||
while (i-- > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue