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

Erik Gahlin egahlin at openjdk.java.net
Mon Jan 10 18:45:33 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

This pull request has now been integrated.

Changeset: 0d190961
Author:    Erik Gahlin <egahlin at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/0d190961f28fb670fab06838dba69ec7a20c2fb9
Stats:     10 lines in 2 files changed: 6 ins; 0 del; 4 mod

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

Reviewed-by: mgronlun

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

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


More information about the hotspot-jfr-dev mailing list