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 ofJDK-8193105.
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
- relates to
-
JDK-8193105 Print error code when map_memory_to_file() fails
-
- Resolved
-