Skip to content

Commit abea37b

Browse files
larsrc-googlecopybara-github
authored andcommitted
Redirect JVM warnings to stderr in general.
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
1 parent dbc8423 commit abea37b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tools/jdk/default_java_toolchain.bzl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ BASE_JDK9_JVM_OPTS = [
4141

4242
# Compact strings make JavaBuilder slightly slower.
4343
"-XX:-CompactStrings",
44+
45+
# Since https://bugs.openjdk.org/browse/JDK-8153723, JVM logging goes to stdout. This
46+
# makes it go to stderr instead.
47+
"-Xlog:disable",
48+
"-Xlog:all=warning:stderr:uptime,level,tags",
4449
]
4550

4651
JDK9_JVM_OPTS = BASE_JDK9_JVM_OPTS

0 commit comments

Comments
 (0)