diff --git a/sdk/mx.sdk/mx_sdk_vm_impl.py b/sdk/mx.sdk/mx_sdk_vm_impl.py index 256cd3ea0931..a79bbc1ffbb2 100644 --- a/sdk/mx.sdk/mx_sdk_vm_impl.py +++ b/sdk/mx.sdk/mx_sdk_vm_impl.py @@ -1419,6 +1419,7 @@ def contents(self): build_args += [ '--enable-monitoring=jvmstat,heapdump,jfr,threaddump', ] + svm_experimental_options([ + '-H:+InstallExitHandlers', '-H:+DumpRuntimeCompilationOnSignal', '-H:+ReportExceptionStackTraces', ]) diff --git a/sdk/mx.sdk/mx_sdk_vm_ng.py b/sdk/mx.sdk/mx_sdk_vm_ng.py index d1f19e0adac8..42ad274fd069 100644 --- a/sdk/mx.sdk/mx_sdk_vm_ng.py +++ b/sdk/mx.sdk/mx_sdk_vm_ng.py @@ -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 diff --git a/substratevm/CHANGELOG.md b/substratevm/CHANGELOG.md index 3ca641617f76..d24de7025827 100644 --- a/substratevm/CHANGELOG.md +++ b/substratevm/CHANGELOG.md @@ -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)