changeset 29598:d437190d9f9a

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
author dsamersoff
date Mon, 23 Mar 2015 02:29:47 -0700
parents 3c8b5093625e
children e2c48b046f91 3c042ba9fd42
files jdk/test/sun/tools/jmap/heapconfig/LingeredApp.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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