Avoid fstat in os::open

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • 27
    • Affects Version/s: None
    • Component/s: hotspot
    • linux, aix

      JDK-8373647 noted that avoiding an unnecessary syscall to fstat when opening a file for write may lead up to ~17% performance boost in high pressure scenarios. We should apply the same patch to os::open.

      Technical details: os::open unconditionally checks if a path is a directory. This check is only needed if O_RDONLY is set otherwise Linux is specified to return error EISDIR.

            Assignee:
            Jonas Norlinder
            Reporter:
            Jonas Norlinder
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: