Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mandrel builds based on JDK 21+32 fail to compile native images with JFR monitoring enabled #546

Closed
zakkak opened this issue Jul 24, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@zakkak
Copy link
Collaborator

zakkak commented Jul 24, 2023

Description

Mandrel builds based on JDK 21+32 fail to compile native images with JFR monitoring enabled due to:

[1/8] Initializing...                                                                                    (0.0s @ 0.10GB)
Error: Could not find target method: com.oracle.svm.core.jfr.Target_jdk_jfr_internal_EventWriter(long,long,long,long,boolean,boolean)
Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception

The constructor being substituted was altered in https://bugs.openjdk.org/browse/JDK-8303134

How To Reproduce

  1. Build mandrel using JDK 21+32
  2. native-image --enable-monitoring=jfr HelloWorld

Configuration:

  • OS: Fedora 38
  • Architecture: AMD64
  • Mandrel version: 95ac311
  • JDK version: 21+32

Expected behavior

The build should complete without errors

cc @roberttoyonaga

@roberttoyonaga
Copy link
Collaborator

Thanks @zakkak I'll work on fixing this

@roberttoyonaga
Copy link
Collaborator

@zakkak Should we close this issue now? It's been resolved for jdk21. See here: oracle#7070 (comment)

@jerboaa
Copy link
Collaborator

jerboaa commented Aug 17, 2023

Closing as fixed. See oracle#7052 (comment)

@jerboaa jerboaa closed this as completed Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants