Skip to content

Commit b5885bf

Browse files
committed
[GR-64787] Fixes for --install-exit-handlers removal.
PullRequest: graal/20981
2 parents 095d45d + 54824fe commit b5885bf

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

sdk/mx.sdk/mx_sdk_vm_impl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,6 +1419,7 @@ def contents(self):
14191419
build_args += [
14201420
'--enable-monitoring=jvmstat,heapdump,jfr,threaddump',
14211421
] + svm_experimental_options([
1422+
'-H:+InstallExitHandlers',
14221423
'-H:+DumpRuntimeCompilationOnSignal',
14231424
'-H:+ReportExceptionStackTraces',
14241425
])

sdk/mx.sdk/mx_sdk_vm_ng.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -387,10 +387,12 @@ def get_build_args(self):
387387
build_args += ['--enable-monitoring=jvmstat,heapdump,jfr,threaddump']
388388
else:
389389
build_args += ['--enable-monitoring=jvmstat,heapdump,jfr']
390-
build_args += mx_sdk_vm_impl.svm_experimental_options(['-H:+DumpThreadStacksOnSignal', '-H:+DumpRuntimeCompilationOnSignal'])
391-
build_args += [
392-
'-R:-UsePerfData', # See GR-25329, reduces startup instructions significantly
393-
]
390+
build_args += mx_sdk_vm_impl.svm_experimental_options(['-H:+DumpThreadStacksOnSignal'])
391+
392+
build_args += mx_sdk_vm_impl.svm_experimental_options(['-H:+DumpRuntimeCompilationOnSignal'])
393+
build_args += [
394+
'-R:-UsePerfData', # See GR-25329, reduces startup instructions significantly
395+
]
394396

395397
return build_args
396398

substratevm/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This changelog summarizes major changes to GraalVM Native Image.
2424
* (GR-59869) Implemented initial optimization of Java Vector API (JEP 338) operations in native images. See the compiler changelog for more details.
2525
* (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
2626
* (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.
27-
* (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`.
27+
* (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`.
2828
* (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.
2929
* (GR-64619) Missing registration errors are now subclasses of `LinkageError`
3030

0 commit comments

Comments
 (0)