Skip to content

Commit

Permalink
Pass -Dsun.io.useCanonCaches=false to JavaBuilder
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 448079808
  • Loading branch information
cushon authored and copybara-github committed May 11, 2022
1 parent 2217b13 commit 8746d45
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tools/jdk/default_java_toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ BASE_JDK9_JVM_OPTS = [
# and: https://github.com/bazelbuild/bazel/issues/5599
"--add-opens=java.base/java.nio=ALL-UNNAMED",
"--add-opens=java.base/java.lang=ALL-UNNAMED",

# TODO(b/64485048): Disable this option in persistent worker mode only.
# Disable symlinks resolution cache since symlinks in exec root change
"-Dsun.io.useCanonCaches=false",
]

JDK9_JVM_OPTS = BASE_JDK9_JVM_OPTS
Expand Down Expand Up @@ -243,11 +247,11 @@ _bootclasspath = rule(
implementation = _bootclasspath_impl,
attrs = {
"host_javabase": attr.label(
cfg = "host",
cfg = "exec",
providers = [java_common.JavaRuntimeInfo],
),
"src": attr.label(
cfg = "host",
cfg = "exec",
allow_single_file = True,
),
"target_javabase": attr.label(
Expand Down

0 comments on commit 8746d45

Please sign in to comment.