Skip to content

Commit

Permalink
Don't pass '--enable-monitoring=heapdump' unconditionally on windows
Browse files Browse the repository at this point in the history
The feature is not supported on Windows

Closes quarkusio#43895
  • Loading branch information
zakkak committed Oct 16, 2024
1 parent fe164e0 commit ad1aa62
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,10 @@ public NativeImageInvokerInfo build() {
}

List<NativeConfig.MonitoringOption> monitoringOptions = new ArrayList<>();
monitoringOptions.add(NativeConfig.MonitoringOption.HEAPDUMP);
if (!SystemUtils.IS_OS_WINDOWS || containerBuild) {
// --enable-monitoring=heapdump is not supported on Windows
monitoringOptions.add(NativeConfig.MonitoringOption.HEAPDUMP);
}
if (nativeConfig.monitoring().isPresent()) {
monitoringOptions.addAll(nativeConfig.monitoring().get());
}
Expand Down

0 comments on commit ad1aa62

Please sign in to comment.