RFR: 8254565: JFR: Incorrect verification of mirror events
Markus Grönlund
mgronlun at openjdk.java.net
Wed Apr 21 08:46:11 UTC 2021
On Wed, 21 Apr 2021 06:04:31 GMT, Erik Gahlin <egahlin at openjdk.org> wrote:
> Hi,
>
> Could I have a review of a fix that improves the verification of mirror events.
>
> Mirror events is an internal mechanism used by JDK events that can't depend on the jdk.jfr module, today only events defined in java.base. The verification is a sanity check to make sure the field layout of the event and the mirror does not differ. The verification now verifies field type and it handles the unlikely case somebody adds a field to java.lang.Object (for experimentation) by always walking the whole class hierarchy of the mirror.
>
> Testing: jdk/jdk/jfr
>
> Thanks
> Erik
Marked as reviewed by mgronlun (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/3600
More information about the hotspot-jfr-dev
mailing list