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

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

Commit messages:
 - removed trailing spaces
 - Fixes class parser to not drop stackmap frames

Changes: https://git.openjdk.org/jdk/pull/12155/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12155&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8228604
  Stats: 344 lines in 3 files changed: 338 ins; 4 del; 2 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

Reply via email to