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

VM fails if any sun.boot.library.path paths are longer than JVM_MAXPATHLEN

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8, 11
    • Fix Version/s: 14
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b12

      Description

      When one or more of the paths in the sun.boot.library.path property are longer than JVM_MAXPATHLEN, both this path and all other paths are ignored.

      The correct behaviour, as determined via community consultation, should be for the VM to fail immediately with a useful message.

      Also, in fixing this issue, I also added a modifier for the length of the path, so that any additional characters (sub path, file name, etc) are be taken into consideration when determining if the path is too long.

      Test case is included in the webrev.

      http://cr.openjdk.java.net/~afarley/8227021.6/webrev/

        Attachments

          Activity

            People

            Assignee:
            afarley Adam Farley
            Reporter:
            afarley Adam Farley
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: