Integrated: 8285914: AppCDS crash when using shared archive with old class file

Calvin Cheung ccheung at openjdk.java.net
Mon May 9 16:04:52 UTC 2022


On Wed, 4 May 2022 18:20:14 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:

> 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).

This pull request has now been integrated.

Changeset: 29ccb8fb
Author:    Calvin Cheung <ccheung at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/29ccb8fbb83037882d59bda35865d3aed1780f9d
Stats:     227 lines in 6 files changed: 218 ins; 1 del; 8 mod

8285914: AppCDS crash when using shared archive with old class file

Reviewed-by: dholmes, iklam

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

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


More information about the hotspot-runtime-dev mailing list