Skip to content

Commit

Permalink
Merge pull request #31579 from zakkak/2023-03-03-cleaner-fix
Browse files Browse the repository at this point in the history
Reinitialize sun.security.pkcs11.P11Util at runtime
  • Loading branch information
gsmet authored Mar 3, 2023
2 parents e6a5903 + 80340d0 commit 9c3141f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ private static void prepareBouncyCastleProvider(CurateOutcomeBuildItem curateOut
runtimeReInitialized.produce(new RuntimeReinitializedClassBuildItem("org.bouncycastle.jcajce.spec.ECUtil"));
}

// Reinitialize class because it embeds a java.lang.ref.Cleaner instance in the image heap
runtimeReInitialized.produce(new RuntimeReinitializedClassBuildItem("sun.security.pkcs11.P11Util"));
}

@BuildStep
Expand Down

0 comments on commit 9c3141f

Please sign in to comment.