Skip to content

Commit

Permalink
Backport 581c88f
Browse files Browse the repository at this point in the history
  • Loading branch information
roberttoyonaga committed Apr 22, 2024
1 parent 0e92f11 commit 252695e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
public class SubstrateExitHandlerFeature implements InternalFeature {
@Override
public void beforeAnalysis(BeforeAnalysisAccess access) {
if (SubstrateOptions.InstallExitHandlers.getValue()) {
if (SubstrateOptions.InstallExitHandlers.getValue() || VMInspectionOptions.hasJfrSupport()) {
RuntimeSupport.getRuntimeSupport().addStartupHook(new SubstrateExitHandlerStartupHook());
}
}
Expand Down

0 comments on commit 252695e

Please sign in to comment.