JDK-8344161 : Argument type mismatch for jfr_type_id
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 21,24
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-11-14
  • Updated: 2024-12-16
  • Resolved: 2024-11-15
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 24
24 b25Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
The declaration for jfr_type_id has the second argument as `jobject jvm`. The definition has `jclass jvm`. This leads to an ODR violation error when building with LTO. The declaration is incorrect, and should be changed to match the definition.

This mismatch appears to have introduced by JDK-8310661, which updated the definition but not the declaration.  All the other nearby declarations were updated by that change.

Comments
Changeset: a672138a Branch: master Author: Markus Grönlund <mgronlun@openjdk.org> Date: 2024-11-15 13:38:52 +0000 URL: https://git.openjdk.org/jdk/commit/a672138aa7cb61c4f905de365628c0bbed6901ac
15-11-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/22115 Date: 2024-11-14 19:02:15 +0000
14-11-2024