RFR: 8374998: Failing os::write - remove bad file

Matthias Baesken mbaesken at openjdk.org
Wed Jan 14 11:22:32 UTC 2026


In filemap.cpp there is error - handling for os::write and in case of failure a 'bad' potentially incomplete file is removed.
https://github.com/openjdk/jdk/blob/1b6c2bdd7b57891ed35e3c067871d2c0bf282824/src/hotspot/share/cds/filemap.cpp#L1059-L1062
This should probably be done also in other coding.

-------------

Commit messages:
 - JDK-8374998

Changes: https://git.openjdk.org/jdk/pull/29228/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29228&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8374998
  Stats: 5 lines in 1 file changed: 5 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/29228.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29228/head:pull/29228

PR: https://git.openjdk.org/jdk/pull/29228


More information about the hotspot-runtime-dev mailing list