Skip to content

[GR-64787] Fixes for --install-exit-handlers removal. #11307

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

Merged
merged 1 commit into from
Jun 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sdk/mx.sdk/mx_sdk_vm_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1419,6 +1419,7 @@ def contents(self):
build_args += [
'--enable-monitoring=jvmstat,heapdump,jfr,threaddump',
] + svm_experimental_options([
'-H:+InstallExitHandlers',
'-H:+DumpRuntimeCompilationOnSignal',
'-H:+ReportExceptionStackTraces',
])
Expand Down
10 changes: 6 additions & 4 deletions sdk/mx.sdk/mx_sdk_vm_ng.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,12 @@ def get_build_args(self):
build_args += ['--enable-monitoring=jvmstat,heapdump,jfr,threaddump']
else:
build_args += ['--enable-monitoring=jvmstat,heapdump,jfr']
build_args += mx_sdk_vm_impl.svm_experimental_options(['-H:+DumpThreadStacksOnSignal', '-H:+DumpRuntimeCompilationOnSignal'])
build_args += [
'-R:-UsePerfData', # See GR-25329, reduces startup instructions significantly
]
build_args += mx_sdk_vm_impl.svm_experimental_options(['-H:+DumpThreadStacksOnSignal'])

build_args += mx_sdk_vm_impl.svm_experimental_options(['-H:+DumpRuntimeCompilationOnSignal'])
build_args += [
'-R:-UsePerfData', # See GR-25329, reduces startup instructions significantly
]

return build_args

Expand Down
2 changes: 1 addition & 1 deletion substratevm/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This changelog summarizes major changes to GraalVM Native Image.
* (GR-59869) Implemented initial optimization of Java Vector API (JEP 338) operations in native images. See the compiler changelog for more details.
* (GR-63268) Reflection and JNI queries do not require metadata entries to throw the expected JDK exception when querying a class that doesn't exist under `--exact-reachability-metadata` if the query cannot possibly be a valid class name
* (GR-60208) Adds the Tracing Agent support for applications using the Foreign Function & Memory (FFM) API. The agent generates FFM configuration in _foreign-config.json_. Additionally, support for FFM configurations has been added to the `native-image-configure` tool.
* (GR-64787) Enable `--install-exit-handlers` by default for executables and deprecate the option. If shared libraries were using this flag, the same functionality can be restored by using `-H:+InstallJavaExitHandlersForSharedLibrary`.
* (GR-64787) Enable `--install-exit-handlers` by default for executables and deprecate the option. If shared libraries were using this flag, the same functionality can be restored by using `-H:+InstallExitHandlers`.
* (GR-47881) Remove the total number of loaded types, fields, and methods from the build output, deprecated these metrics in the build output schema, and removed already deprecated build output metrics.

## GraalVM for JDK 24 (Internal Version 24.2.0)
Expand Down