RFR: 8331348: Some incremental builds deposit files in the make directory

Magnus Ihse Bursie ihse at openjdk.org
Thu May 23 10:36:06 UTC 2024


On Wed, 22 May 2024 00:33:44 GMT, Nizar Benalla <nbenalla at openjdk.org> wrote:

> Please review this small change. Passes tier 1-3.
> 
> In case of fatal errors or if a hidden option is passed to the compiler, a report with the parameters passed to it is printed to a file in the `@-file` format, this makes it easier for us to reproduce the bug. And for users submitting bug reports.
> Some of these files were being deposited in the current directory during OpenJDK builds, now they are moved to the temp dir.
> Writing to the console only is not an option because of the large number of arguments that can be passed to the compiler.
> By convention, a number of arguments is printed to the console if an error occurs while writing to the file.
> Some also suggested adding a message as to why this file exist.
> 
> TIA
> 
> I see the bot is complaining due to the fix version but I think it can be changed, if this is approved.

I have created a complement to this bug in [JDK-8332808](https://bugs.openjdk.org/browse/JDK-8332808). There I will make sure that `java.io.tmpdir` is set to point to a suitable place inside the build output directory. These two fixes in tandem will provide a good solution to this, I think.

@vicente-romero-oracle I think this will serve as an answer to you.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/19338#issuecomment-2126775407


More information about the compiler-dev mailing list