RFR: 8321429: (fc) FileChannel.lock creates a FileKey containing two long index values, they could be stored as int values

Brian Burkhalter bpb at openjdk.org
Thu Dec 7 02:03:52 UTC 2023


The private `FileKey` fields `dwVolumeSerialNumber`, `nFileIndexHigh`, and `nFileIndexLow` are converted to `int`s to match the number of bits in their native `DWORD` counterparts. The difference in sign appears irrelevant in this case.

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

Commit messages:
 - 8321429: Expunge trailing whitespace
 - 8321429: (fc) FileChannel.lock creates a FileKey containing two long index values, they could be stored as int values

Changes: https://git.openjdk.org/jdk/pull/17009/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17009&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8321429
  Stats: 13 lines in 2 files changed: 0 ins; 2 del; 11 mod
  Patch: https://git.openjdk.org/jdk/pull/17009.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/17009/head:pull/17009

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


More information about the nio-dev mailing list