RFR: 8294368: Java incremental builds broken on Windows after JDK-8293116
Erik Joelsson
erikj at openjdk.org
Tue Oct 4 17:58:33 UTC 2022
On Tue, 4 Oct 2022 17:25:07 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
> WRT the redundant copy. I wanted to avoid the use site having to have some `if` that checks whether we're running on Windows to decide which file `$1_COMPILE_TARGET` should depend on. Copying allows always depending on the fixed file.
You are indeed correct and having a single code path is also a desirable attribute. Had this been in a more performance sensitive location, I would have still preferred to avoid the copy, but I think once per Java compilation unit is rare enough to not be an issue, especially since it's just unnecessary on non-windows.
-------------
PR: https://git.openjdk.org/jdk/pull/10560
More information about the compiler-dev
mailing list