Integrated: 8254565: JFR: Incorrect verification of mirror events

Erik Gahlin egahlin at openjdk.java.net
Wed Apr 21 21:26:22 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

This pull request has now been integrated.

Changeset: 71163213
Author:    Erik Gahlin <egahlin at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/71163213
Stats:     25 lines in 1 file changed: 10 ins; 9 del; 6 mod

8254565: JFR: Incorrect verification of mirror events

Reviewed-by: mgronlun

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

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


More information about the hotspot-jfr-dev mailing list