RFR: JDK-8276202: LogFileOutput.invalid_file_vm asserts when being executed from a read only working directory

Daniel D.Daugherty dcubed at openjdk.java.net
Thu Apr 28 14:54:46 UTC 2022


On Thu, 14 Apr 2022 08:36:26 GMT, Johan Sjölén <duke at openjdk.java.net> wrote:

> This PR replaces some of the VM `assert` with gtest `ASSERT` where applicable and fixes a bug in a UL test.
> The test used to create a temporary directory in cwd, failing if cwd is read-only. Now it creates the directory in /tmp/.

Typically the reason for putting temporary files in the current directory
is so that they are created in a JTREG managed directory and cleaned
up as needed. By putting the files in /tmp you will be putting them in
a place where JTREG won't deal with them. Also, in the event of a test
failure, will the file in /tmp be left behind?

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

PR: https://git.openjdk.java.net/jdk/pull/8238


More information about the hotspot-runtime-dev mailing list