RFR: 8313394: Array Elements in OldObjectSample event should be -1 if the object is not an array
Erik Gahlin
egahlin at openjdk.org
Mon Jul 31 12:57:53 UTC 2023
On Mon, 31 Jul 2023 07:20:45 GMT, KIRIYAMA Takuya <duke at openjdk.org> wrote:
> With this fix, arrayElements attribute in OldObjectSample event will be -1 if the object is not an array.
> Could anyone please review this fix?
A better fix is probably to update the description to match the implementation and change the JMC GUI to display integer min value as N/A, similar to the jfr tool and RecordedObject::toString().
There may be code that already relies on the current behavior and the min value is used to indicate N/A elsewhere.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15084#issuecomment-1658320673
More information about the hotspot-jfr-dev
mailing list