JDK-8280178 : Remove os:: API's that just call system API's
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 19
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-01-18
  • Updated: 2022-02-15
  • Resolved: 2022-01-20
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.
JDK 19
19 b07Fixed
Related Reports
Relates :  
Description
Functions os::close(), os::read(), and os::socket() just call ::close(), ::read(), and ::socket() for both Posix and Windows.  The os:: versions of these functions should be removed and hotspot should call the :: versions directly.
Comments
Changeset: a4d20190 Author: Harold Seigel <hseigel@openjdk.org> Date: 2022-01-20 13:10:33 +0000 URL: https://git.openjdk.java.net/jdk/commit/a4d201909c8919b7465dee72594d718252c6344e
20-01-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/7145 Date: 2022-01-19 19:03:43 +0000
19-01-2022

I agree. We should only have os::foo() if either foo() truly needs per-OS definition and/or we need to add some additional logic compared to the native version.
18-01-2022