Skip to content

Commit a7f26c7

Browse files
Add option ImplicitExceptionWithoutStacktraceIsFatal.
1 parent 8db8411 commit a7f26c7

File tree

4 files changed

+57
-51
lines changed

4 files changed

+57
-51
lines changed

substratevm/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This changelog summarizes major changes to GraalVM Native Image.
66
* (GR-51106) Fields that are accessed via a `VarHandle` or `MethodHandle` are no longer marked as "unsafe accessed" when the `VarHandle`/`MethodHandle` can be fully intrinsified.
77
* (GR-49996) Ensure explicitly set image name (e.g., via `-o imagename`) is not accidentally overwritten by `-jar jarfile` option.
88
* (GR-48683) Together with Red Hat, we added partial support for the JFR event `OldObjectSample`.
9-
* (GR-47109) JFR event throttling support was added, along with the `ObjectAllocationSample` event.
9+
* (GR-47109) Together with Red Hat, we added support for JFR event throttling and the event `ObjectAllocationSample`.
1010

1111
## GraalVM for JDK 22 (Internal Version 24.0.0)
1212
* (GR-48304) Red Hat added support for the JFR event ThreadAllocationStatistics.

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/SubstrateOptions.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,9 @@ protected void onValueUpdate(EconomicMap<OptionKey<?>, Object> values, String ol
966966
@Option(help = "Specifies the number of entries that diagnostic buffers have.", type = OptionType.Debug)//
967967
public static final HostedOptionKey<Integer> DiagnosticBufferSize = new HostedOptionKey<>(30);
968968

969+
@Option(help = "Determines if implicit exceptions are fatal if they don't have a stack trace.", type = OptionType.Debug)//
970+
public static final RuntimeOptionKey<Boolean> ImplicitExceptionWithoutStacktraceIsFatal = new RuntimeOptionKey<>(false);
971+
969972
@SuppressWarnings("unused")//
970973
@APIOption(name = "configure-reflection-metadata")//
971974
@Option(help = "Enable runtime instantiation of reflection objects for non-invoked methods.", type = OptionType.Expert, deprecated = true)//

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jfr/throttling/JfrAdaptiveSampler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private void configure(JfrSamplerParams params, JfrSamplerWindow expired, JfrSam
118118

119119
@Uninterruptible(reason = CALLED_FROM_UNINTERRUPTIBLE_CODE, mayBeInlined = true)
120120
private static double computeEwmaAlphaCoefficient(long lookbackCount) {
121-
return lookbackCount <= 1 ? 1 : 1d / lookbackCount;
121+
return lookbackCount <= 1 ? 1d : 1d / lookbackCount;
122122
}
123123

124124
@Uninterruptible(reason = CALLED_FROM_UNINTERRUPTIBLE_CODE, mayBeInlined = true)

0 commit comments

Comments
 (0)