RFR(S) 8222500: runtime/8176717/TestInheritFD.java failed with java.nio.file.NoSuchFileException: /tmp/communication7071713601211876892.txt

David Holmes david.holmes at oracle.com
Thu May 2 02:51:35 UTC 2019


Hi Harold,

On 2/05/2019 4:25 am, Harold Seigel wrote:
> Hi,
> 
> Please review this fix for JDK-8222500.  The fix changes the test to use 
> jdk.test.lib.Utils.createTempFile(), instead of 
> java.io.File.createTempFile().  This means that the temporary files will 
> no longer be created in /tmp/, where they can potentially be changed or 
> deleted by other processes.  And, secondly, that the temporary files 
> will get cleaned up.

I can't clearly see how the temporary file is used by each VM nor how 
the VM lifecycles are coordinated. Is it possible that the initial VM 
could terminate and attempt to delete the file while it is still in use 
by one of the other VMs? If so that sounds like we will have problems on 
Windows.

Thanks,
David

> Open Webrev: 
> http://cr.openjdk.java.net/~hseigel/bug_8222500/webrev/index.html
> 
> JBS Bug: https://bugs.openjdk.java.net/browse/JDK-8222500
> 
> The modified test was run successfully on Linux-X64, Mac, and Windows.
> 
> Thanks, Harold
> 


More information about the hotspot-runtime-dev mailing list