JDK-8303942 : os::write should write completely
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 17,20,21
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-03-10
  • Updated: 2025-06-13
  • Resolved: 2023-05-23
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 17 JDK 21
17.0.13Fixed 21 b24Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
JDK-8303937 highlighted the fact that os::write can legitimately perform a short write. But write_bytes will fail in that case instead of doing the write in a loop.
Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/13188 Date: 2023-03-27 08:04:23 +0000
13-06-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/13750 Date: 2023-05-02 07:45:03 +0000
13-06-2025

[jdk17u-fix-request] Approval Request from Elif Aslan Not a clean backport.There were multiple merge conflicts related to undefined parameters and existing methods. This backport is required to address a crash observed in Amazon production. Additionally [JDK-8316468](https://bugs.openjdk.org/browse/JDK-8316468) regression has been adressed and added as a clean backport to the PR. Testing: hotspot,jfr and GHA tests passed.
28-05-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/2490 Date: 2024-05-23 19:33:35 +0000
23-05-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/1797 Date: 2023-09-26 17:15:53 +0000
26-09-2023

Changeset: bddf4838 Author: Afshin Zafari <azafari@openjdk.org> Date: 2023-05-23 17:08:08 +0000 URL: https://git.openjdk.org/jdk/commit/bddf48380e658df630fecad5eda40106a24b6e1c
23-05-2023