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

Reinitialize sun.security.pkcs11.P11Util at runtime #31579

Merged
merged 1 commit into from
Mar 3, 2023

Commits on Mar 3, 2023

  1. Reinitialize sun.security.pkcs11.P11Util at runtime

    Fixes build error:
    ```
    Error: Detected a java.lang.ref.Cleaner object in the image heap which uses a daemon thread that invokes cleaning actions, but threads running in the image generator are no longer running at image runtime.  To see how this object got instantiated use --trace-object-instantiation=java.lang.ref.Cleaner. The object was probably created by a class initializer and is reachable from a static field. You can request class initialization at image runtime by using the option --initialize-at-run-time=<class-name>. Or you can write your own initialization methods and call them explicitly from your main entry point.
    Detailed message:
    Trace: Object was reached by
      trying to constant fold static field sun.security.pkcs11.P11Util.cleaner
        at sun.security.pkcs11.wrapper.PKCS11.<init>(PKCS11.java:170)
      parsing method sun.security.pkcs11.wrapper.PKCS11.<init>(PKCS11.java:154) reachable via the parsing context
        at static root method.(Unknown Source)
    ```
    zakkak committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    80340d0 View commit details
    Browse the repository at this point in the history