8075569: jmap test fails due to "ERROR: java.nio.file.NoSuchFileException: 2906081d-06bc-4738-a7e8-f37b8bf13658.lck"
Summary: Lock file is deleted while we are setting modified time
Reviewed-by: alanb
--- a/jdk/test/sun/tools/jmap/heapconfig/LingeredApp.java Mon Mar 23 15:37:03 2015 +0800
+++ b/jdk/test/sun/tools/jmap/heapconfig/LingeredApp.java Mon Mar 23 02:29:47 2015 -0700
@@ -417,7 +417,9 @@
setLastModified(theLockFileName, epoch());
Thread.sleep(spinDelay);
}
-
+ } catch (NoSuchFileException ex) {
+ // Lock deleted while we are setting last modified time.
+ // Ignore error and lets the app exits
} catch (Exception ex) {
System.err.println("LingeredApp ERROR: " + ex);
// Leave exit_code = 1 to Java launcher