JDK-8193146 : OSX version of util_posix_fallocate() doesn't return error code
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 10
  • Priority: P5
  • Status: Open
  • Resolution: Unresolved
  • OS: os_x
  • Submitted: 2017-12-06
  • Updated: 2019-02-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Description
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.