[jdk17] Integrated: 8268470: CDS dynamic dump asserts with JFR RecordingStream

Calvin Cheung ccheung at openjdk.java.net
Fri Jun 11 16:11:01 UTC 2021


On Thu, 10 Jun 2021 18:53:44 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:

> During JFR startup, it redefines some of the builtin classes like `java/lang/Throwable`. Later, when a subclass of Throwable is loaded, it will inherit the redefined version of Throwable which will not be inside the buffer space or mapped static archive.
> 
> To fix this bug, in `SystemDictionaryShared::check_for_exclusion_impl()`, instead of only checking if the class has been redefined, it also checks if any of its super types has been redefined. If so, exclude the class from the archive.
> 
> - [x] mach5 tier1, tier2 (including the new test) (in progress)

This pull request has now been integrated.

Changeset: 01054e6f
Author:    Calvin Cheung <ccheung at openjdk.org>
URL:       https://git.openjdk.java.net/jdk17/commit/01054e6f5ab75dd1b7d3e82be0eb83f14a7add15
Stats:     170 lines in 4 files changed: 169 ins; 0 del; 1 mod

8268470: CDS dynamic dump asserts with JFR RecordingStream

Reviewed-by: minqi, iklam

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

PR: https://git.openjdk.java.net/jdk17/pull/9


More information about the hotspot-runtime-dev mailing list