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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P5 P5
    • tbd
    • 10
    • 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.

            Unassigned Unassigned
            sangheki Sangheon Kim
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: