mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8339217: Optimize ClassFile API loadConstant
Reviewed-by: liach, redestad, asotona
This commit is contained in:
parent
08b25611f6
commit
2461263aac
2 changed files with 68 additions and 27 deletions
|
@ -1645,7 +1645,7 @@ class InvokerBytecodeGenerator {
|
|||
clb.withMethodBody("dummy", MTD_void, ACC_STATIC, new Consumer<>() {
|
||||
@Override
|
||||
public void accept(CodeBuilder cob) {
|
||||
cob.loadConstant(os.toString());
|
||||
cob.ldc(os.toString());
|
||||
cob.pop();
|
||||
cob.return_();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue