mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8340587: Optimize StackMapGenerator$Frame::checkAssignableTo
Reviewed-by: liach
This commit is contained in:
parent
9bcc7b66de
commit
2d38af61e4
1 changed files with 7 additions and 3 deletions
|
@ -1095,11 +1095,15 @@ public final class StackMapGenerator {
|
|||
}
|
||||
|
||||
void checkAssignableTo(Frame target) {
|
||||
int localsSize = this.localsSize;
|
||||
int stackSize = this.stackSize;
|
||||
if (target.flags == -1) {
|
||||
target.locals = locals == null ? null : Arrays.copyOf(locals, localsSize);
|
||||
target.locals = locals == null ? null : locals.clone();
|
||||
target.localsSize = localsSize;
|
||||
target.stack = stack == null ? null : Arrays.copyOf(stack, stackSize);
|
||||
target.stackSize = stackSize;
|
||||
if (stackSize > 0) {
|
||||
target.stack = stack.clone();
|
||||
target.stackSize = stackSize;
|
||||
}
|
||||
target.flags = flags;
|
||||
target.dirty = true;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue