Skip to content

Commit f8a5bef

Browse files
committed
[GR-68814] Fix setting ReduceImplicitExceptionStackTraceInformation for O3.
PullRequest: graal/21881
2 parents 0008303 + dbca0cd commit f8a5bef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,8 @@ protected void onValueUpdate(EconomicMap<OptionKey<?>, Object> values, String ol
359359
* precision of implicit stack traces. But for optimized release builds, including pgo
360360
* builds, it is a valuable image size reduction.
361361
*/
362-
if (!values.containsKey(SubstrateOptions.ReduceImplicitExceptionStackTraceInformation)) {
363-
SubstrateOptions.ReduceImplicitExceptionStackTraceInformation.update(values, newLevel == OptimizationLevel.O3);
362+
if (!values.containsKey(SubstrateOptions.ReduceImplicitExceptionStackTraceInformation) && newLevel == OptimizationLevel.O3) {
363+
SubstrateOptions.ReduceImplicitExceptionStackTraceInformation.update(values, true);
364364
}
365365

366366
GraalOptions.OptimizeLongJumps.update(values, !newLevel.isOneOf(OptimizationLevel.O0, OptimizationLevel.BUILD_TIME));

0 commit comments

Comments
 (0)