Integrated: 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
Fri Dec 8 19:22:23 UTC 2023


On Thu, 7 Dec 2023 01:32:45 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: 71800884
Author:    Brian Burkhalter <bpb at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/71800884f68f984f43a59142e22b4b06df607965
Stats:     14 lines in 2 files changed: 1 ins; 0 del; 13 mod

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

Reviewed-by: alanb

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

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


More information about the nio-dev mailing list