Skip to content

Commit

Permalink
Merge pull request #33987 from jerboaa/deprecate_fullstacktrace
Browse files Browse the repository at this point in the history
Deprecate fullStacktraces
  • Loading branch information
geoand authored Jun 15, 2023
2 parents f3761c1 + d4bcd81 commit 4df65fc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,11 @@ default String getEffectiveImage() {

/**
* If full stack traces are enabled in the resulting image
*
* @deprecated GraalVM 23.1+ will always build with full stack traces.
*/
@WithDefault("true")
@Deprecated
boolean fullStackTraces();

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ public static final class Version implements Comparable<Version> {
public static final Version VERSION_22_3_0 = new Version("GraalVM 22.3.0", "22.3.0", Distribution.ORACLE);
public static final Version VERSION_22_2_0 = new Version("GraalVM 22.2.0", "22.2.0", Distribution.ORACLE);
public static final Version VERSION_23_0_0 = new Version("GraalVM 23.0.0", "23.0.0", Distribution.ORACLE);
public static final Version VERSION_23_1_0 = new Version("GraalVM 23.1.0", "23.1.0", Distribution.ORACLE);

public static final Version MINIMUM = VERSION_22_2_0;
public static final Version CURRENT = VERSION_22_3_2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -900,10 +900,13 @@ public NativeImageInvokerInfo build() {
} else {
nativeImageArgs.add("-H:-UseServiceLoaderFeature");
}
if (nativeConfig.fullStackTraces()) {
nativeImageArgs.add("-H:+StackTrace");
} else {
nativeImageArgs.add("-H:-StackTrace");
// This option has no effect on GraalVM 23.1+
if (graalVMVersion.compareTo(GraalVM.Version.VERSION_23_1_0) < 0) {
if (nativeConfig.fullStackTraces()) {
nativeImageArgs.add("-H:+StackTrace");
} else {
nativeImageArgs.add("-H:-StackTrace");
}
}

if (nativeConfig.enableDashboardDump()) {
Expand Down

0 comments on commit 4df65fc

Please sign in to comment.