RFR: 8309808: BytecodeTracer prints wrong BSM for invokedynamic

Ioi Lam iklam at openjdk.org
Mon Jun 12 22:04:08 UTC 2023


This PR fixes the tracing of invokedynamic bytecodes:


before: 0x00007f3aa8400385  5 invokedynamic 1 <java/lang/Object.<init>()V>
after:  0x00007f9bcc4056a5  5 invokedynamic bsm=37 13 <makeConcatWithConstants(I)Ljava/lang/String;>


I've also added WhiteBox functionality to make it easy to write new tests for the BytecodeTracer.

-------------

Commit messages:
 - 8309808: BytecodePrinter prints wrong BSM for invokedynamic

Changes: https://git.openjdk.org/jdk/pull/14429/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14429&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8309808
  Stats: 195 lines in 6 files changed: 184 ins; 3 del; 8 mod
  Patch: https://git.openjdk.org/jdk/pull/14429.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14429/head:pull/14429

PR: https://git.openjdk.org/jdk/pull/14429


More information about the hotspot-dev mailing list