Skip to content

Commit

Permalink
Redirect JVM warnings to stderr in general.
Browse files Browse the repository at this point in the history
In particular this avoids problems with JVM warnings clashing with the worker protocol, but also matches Blaze's idea of where output goes better.

PiperOrigin-RevId: 524826411
Change-Id: If4c78ac5f63dfd4596da924c12552f6335b8034d
  • Loading branch information
larsrc-google authored and copybara-github committed Apr 17, 2023
1 parent dbc8423 commit abea37b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/jdk/default_java_toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ BASE_JDK9_JVM_OPTS = [

# Compact strings make JavaBuilder slightly slower.
"-XX:-CompactStrings",

# Since https://bugs.openjdk.org/browse/JDK-8153723, JVM logging goes to stdout. This
# makes it go to stderr instead.
"-Xlog:disable",
"-Xlog:all=warning:stderr:uptime,level,tags",
]

JDK9_JVM_OPTS = BASE_JDK9_JVM_OPTS
Expand Down

0 comments on commit abea37b

Please sign in to comment.