diff options
author | laszlocsomor <laszlocsomor@google.com> | 2018-07-10 06:11:18 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-07-10 06:12:53 -0700 |
commit | d17467e3bf9ff0408d201b960af71939b55b873b (patch) | |
tree | 926b928b4fac9decd8433a616e0a0cf271a6bab0 /README.md | |
parent | 8c11fe9415e6d30069bdba559f6943747dd56e9f (diff) |
Bazel server, tools: ensure Writers are closed
Follow-up to commit 09d20311d982606093ed881d779bb05a5ee70ed3.
Use try-with-resources to ensure Writer objects
are closed eagerly.
Eagerly closing Writers avoids hanging on to
file handles until the garbage collector finalizes
the object, meaning Bazel on Windows (and
other processes) can delete or mutate these files.
Hopefully this avoids intermittent file deletion
errors that sometimes occur on Windows.
See https://github.com/bazelbuild/bazel/issues/5512
RELNOTES: none
PiperOrigin-RevId: 203934471
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions