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 byJDK-8310661, which updated the definition but not the declaration. All the other nearby declarations were updated by that change.
This mismatch appears to have introduced by
- relates to
-
JDK-8340215 Build fails with LTO due to ODR violations.
-
- Closed
-
-
JDK-8343698 Linux x86_64 lto build gives a lot of warnings and fails lto-wrapper: fatal error: make returned 2 exit status
-
- Resolved
-
-
JDK-8310661 JFR: Replace JVM.getJVM() with JVM
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk/a672138a
-
Review(master) openjdk/jdk/22115