OSX version of util_posix_fallocate() doesn't return error code

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P5
    • tbd
    • Affects Version/s: 10
    • Component/s: hotspot
    • None
    • gc
    • os_x

      util_posix_fallocate() is implemented differently for OSX and other.
      Other version directly calls posix_fallocate() and returns error code when fails. However, OSX version returns -1 with setting errno when fails.

      Current os::map_memory_to_file() checks return value and prints as an error which doesn't fit in OSX version.

      This is found during code review of JDK-8193105.

            Assignee:
            Unassigned
            Reporter:
            Sangheon Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: