Skip to content

Commit

Permalink
Merge pull request #3 from roberttoyonaga/GR-52454
Browse files Browse the repository at this point in the history
Backport of GR-52454: Include signal exit handlers in the image build if JFR
  • Loading branch information
zakkak authored Aug 28, 2024
2 parents d2a466d + f407f33 commit e83311b
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 e83311b

Please sign in to comment.