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

[windows] CDS archive may fail to open with long file names

XMLWordPrintable

    • b18
    • windows

        On Windows, os::pd_map_memory() uses CreateFile, not CreateFileW, to get a handle to the mapped file. This causes misleading "file not found" errors if the file name is longer than Windows allows [1][2].

        AFAICS os::pd_map_memory is only used by CDS.

        [1] https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file
        [2] https://docs.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation

              stuefe Thomas Stuefe
              stuefe Thomas Stuefe
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: