Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8049344

MonitorVmStartTerminate fails intermittently

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • None
    • 9
    • hotspot
    • None
    • svc

    Description

      The test contains a method for creating a file that is used for process signaling.

                  Files.write(path, new byte[0], StandardOpenOption.CREATE);
      - if (!Files.exists(path)) {
      - throw new Error("Newly created file " + path
      - + " does not exist!");
      - }
              }

      An unexpected exception may be thrown if file is removed between Files.write and .Files.exists. Fix is to remove Files.exist call.

      Attachments

        Issue Links

          Activity

            People

              egahlin Erik Gahlin
              egahlin Erik Gahlin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: