JDK-8318124 : JFR: Rewrite instrumentation to use Class-File API
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 22
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-10-15
  • Updated: 2023-11-06
  • Resolved: 2023-10-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 22
22 b21Fixed
Related Reports
Relates :  
Description
Today, the ASM framework dynamically generates bytecode to commit events into thread local buffers. Plan is to modify the code generation process to enable user-defined events to selectively opt-out of event thread, stack trace, and duration fields. JVM events already have this capability.

Before doing the bytecode generation changes, it make sense to rewrite it using the new Class-File API. This minimizes necessary code modifications and simplifies the implementation of the opt-out mechanism.
Comments
Changeset: 69c0ae23 Author: Erik Gahlin <egahlin@openjdk.org> Date: 2023-10-23 16:00:14 +0000 URL: https://git.openjdk.org/jdk/commit/69c0ae23a323dd547f53234848f32ed9ba41792b
23-10-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/16195 Date: 2023-10-15 20:20:48 +0000
15-10-2023