RFR(S): 8075438 - [TESTBUG] Hotspot JTREG tests should use unique CDS archive names

Christian Tornqvist christian.tornqvist at oracle.com
Fri Mar 27 21:48:54 UTC 2015


Hi David,

>Is this because jtreg is deleting the directory contents and windows is
preventing the file from being deleted, and so it interferes with the next
test?
Yes

>When a test uses '.' for files what actual directory gets used for that? 
>JTwork/scratch or JTwork/path/to/test ?

The scratch directory will be JTwork\scratch and the file will end up there
when specifying '.'

Thanks,
Christian

-----Original Message-----
From: David Holmes [mailto:david.holmes at oracle.com] 
Sent: Thursday, March 26, 2015 4:53 PM
To: Christian Tornqvist; hotspot-runtime-dev at openjdk.java.net
Subject: Re: RFR(S): 8075438 - [TESTBUG] Hotspot JTREG tests should use
unique CDS archive names

Hi Christian,

On 27/03/2015 5:08 AM, Christian Tornqvist wrote:
> Hi everyone,
>
>
>
> Please review this small change that changes the CDS archive names to 
> be unique. The theory is that sometimes on Windows, something 
> (Anti-virus
> software?) is keeping the archive file open after the JVM has been 
> shut down. JTreg will use the same folder for tests in the same folder 
> and the next test may fail to create the archive (seen in 8067333, 
> 8075212, 8056944 and 8075212)

Is this because jtreg is deleting the directory contents and windows is
preventing the file from being deleted, and so it interferes with the next
test?

When a test uses '.' for files what actual directory gets used for that? 
JTwork/scratch or JTwork/path/to/test ?

Thanks,
David

>
>
> Webrev:
>
> http://cr.openjdk.java.net/~ctornqvi/webrev/8075438/webrev.00/
>
>
>
> Bug:
>
> https://bugs.openjdk.java.net/browse/JDK-8075438
>
>
>
> Thanks,
>
> Christian
>



More information about the hotspot-runtime-dev mailing list