mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8341136: Optimize StackMapGenerator::trimAndCompress
Reviewed-by: liach
This commit is contained in:
parent
e9327b6e3c
commit
6e0138450a
1 changed files with 4 additions and 1 deletions
|
@ -1387,7 +1387,10 @@ public final class StackMapGenerator {
|
|||
int compressed = 0;
|
||||
for (int i = 0; i < count; i++) {
|
||||
if (!types[i].isCategory2_2nd()) {
|
||||
types[compressed++] = types[i];
|
||||
if (compressed != i) {
|
||||
types[compressed] = types[i];
|
||||
}
|
||||
compressed++;
|
||||
}
|
||||
}
|
||||
return compressed;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue