RFR: 8285914: AppCDS crash when using shared archive with old class file [v2]

Calvin Cheung ccheung at openjdk.java.net
Thu May 5 22:55:05 UTC 2022


> Please review this change for an additional check before archiving a lambda proxy class. If the nest host of an lambda proxy class implements an old (major version < JDK_6 (50)) interface, the lambda proxy class should not be archived. This avoids accessing a null nest host during runtime while loading the lambda proxy class from the CDS archive.
> 
> Passed the test in the bug report.
> 
> Passed CI tiers 1 - 4 testing (including the new tests).

Calvin Cheung has updated the pull request incrementally with one additional commit since the last revision:

  @iklam comments and also rename the test classes

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/8540/files
  - new: https://git.openjdk.java.net/jdk/pull/8540/files/2646c2a3..38b2a05c

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=8540&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=8540&range=00-01

  Stats: 203 lines in 5 files changed: 99 ins; 91 del; 13 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8540.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8540/head:pull/8540

PR: https://git.openjdk.java.net/jdk/pull/8540


More information about the hotspot-runtime-dev mailing list