RFR: 8279642: JFR: Remove unnecessary creation of Duration and Instant objects

Markus Grönlund mgronlun at openjdk.java.net
Mon Jan 10 14:50:25 UTC 2022


On Sat, 8 Jan 2022 01:21:06 GMT, Erik Gahlin <egahlin at openjdk.org> wrote:

> Hi,
> 
> Could I have review of an enhancement that removes a few unnecessary allocations when consuming JFR events. It's quite common that events have no duration and there is no need to recalculate an instant twice. I also removed an unnecessary throws clause.
> 
> Testing: jdk/jdk/jfr
> 
> Thanks
> Erik

Marked as reviewed by mgronlun (Reviewer).

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

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


More information about the hotspot-jfr-dev mailing list