RFR: 8256178: Add RAII object for file lock [v2]

Yasumasa Suenaga ysuenaga at openjdk.java.net
Wed Nov 11 07:25:12 UTC 2020


> This PR is subtask of [JDK-8256008](https://bugs.openjdk.java.net/browse/JDK-8256008) (#1106)
> 
> `LogFileStreamOutput::write()` uses `os::flockfile()` and `os::funlockfile()` to serialize write ops. It is better to use RAII because we can ensure `os::funlockfile()` call.

Yasumasa Suenaga has updated the pull request incrementally with one additional commit since the last revision:

  Remove funlockfile() call

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/1156/files
  - new: https://git.openjdk.java.net/jdk/pull/1156/files/71adb8e4..ada14868

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=1156&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=1156&range=00-01

  Stats: 2 lines in 1 file changed: 0 ins; 2 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1156.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1156/head:pull/1156

PR: https://git.openjdk.java.net/jdk/pull/1156


More information about the hotspot-runtime-dev mailing list