Integrated: 8367949: JFR: MethodTrace double-counts methods that catch their own exceptions
Erik Gahlin
egahlin at openjdk.org
Thu Jan 8 16:38:54 UTC 2026
On Sun, 21 Dec 2025 16:22:25 GMT, Erik Gahlin <egahlin at openjdk.org> wrote:
> Could I have a review of a PR that changes how the instrumentation of the MethodTrace and MethodTiming events is implemented, so they handle exceptions in a better way?
>
> For constructors, the current implementation is still used in certain corner cases. A proper implementation would require data-flow analysis, but for all practical purposes this code should work fine.
>
> Testing: jdk/jdk/jfr
>
> Thanks
> Erik
This pull request has now been integrated.
Changeset: fa2eb626
Author: Erik Gahlin <egahlin at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/fa2eb626478806dc64fe03d8729f53f7ed26a172
Stats: 363 lines in 5 files changed: 333 ins; 1 del; 29 mod
8367949: JFR: MethodTrace double-counts methods that catch their own exceptions
Reviewed-by: mgronlun
-------------
PR: https://git.openjdk.org/jdk/pull/28947
More information about the hotspot-jfr-dev
mailing list