RFR: 8321429: (fc) FileChannel.lock creates a FileKey containing two long index values, they could be stored as int values [v2]
Brian Burkhalter
bpb at openjdk.org
Thu Dec 7 17:00:46 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.
Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
8321429: Use Objects.hash() in FileKey.hashCode()
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/17009/files
- new: https://git.openjdk.org/jdk/pull/17009/files/7aa11df9..f5cdc489
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=17009&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=17009&range=00-01
Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 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