Skip to content

Commit

Permalink
Option TraceServiceLoaderFeature removed in GraalVM 23.1
Browse files Browse the repository at this point in the history
The option `TraceServiceLoaderFeature` is no longer available starting
with GraalVM 23.1 as part of a refactoring in how the
`ServiceLoaderFeature` works.

There is currently no option offering similar output.

Fixes quarkusio#36129

(cherry picked from commit 6b16b10)
  • Loading branch information
zakkak authored and gsmet committed Nov 13, 2023
1 parent 60d6bd8 commit 6c4221f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -924,8 +924,10 @@ public NativeImageInvokerInfo build() {

if (nativeConfig.autoServiceLoaderRegistration()) {
addExperimentalVMOption(nativeImageArgs, "-H:+UseServiceLoaderFeature");
//When enabling, at least print what exactly is being added:
nativeImageArgs.add("-H:+TraceServiceLoaderFeature");
if (graalVMVersion.compareTo(GraalVM.Version.VERSION_23_1_0) < 0) {
// When enabling, at least print what exactly is being added. Only possible in <23.1.0
nativeImageArgs.add("-H:+TraceServiceLoaderFeature");
}
} else {
addExperimentalVMOption(nativeImageArgs, "-H:-UseServiceLoaderFeature");
}
Expand Down

0 comments on commit 6c4221f

Please sign in to comment.