RFR: 8228604: StackMapFrames are missing from redefined class bytes of retransformed classes [v3]

Alex Menkov amenkov at openjdk.org
Thu Feb 2 00:17:58 UTC 2023


> classFileParser drops stack map frames for JDK classes (when verification is not required).
> As a result JvmtiClassFileReconstituter cannot restore the attribute for class redefinition.
> Note that if the class is in CDS archive, the frames are restored from CDS, so this issue affects only JDK classes which are not in CDS.
> This code is old (from "initial load") and I don't understand the reason it was implemented this way.
> 
> Testing: tier1-tier6

Alex Menkov has updated the pull request incrementally with one additional commit since the last revision:

  Updated test - addressed review comments

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/12155/files
  - new: https://git.openjdk.org/jdk/pull/12155/files/76970bec..3ff8a90e

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=12155&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=12155&range=01-02

  Stats: 134 lines in 2 files changed: 15 ins; 6 del; 113 mod
  Patch: https://git.openjdk.org/jdk/pull/12155.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/12155/head:pull/12155

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


More information about the serviceability-dev mailing list