8230665: (bf spec) ByteBuffer::alignmentOffset spec misleading when address is misaligned
brian.burkhalter at oracle.com
Sat Jan 11 01:39:03 UTC 2020
The issue  arose because a negative internal address value caused a negative alignment offset value to be returned which is not supposed to happen. The alignment offset is supposed to be non-negative, with a value of zero denoting alignment, and a positive value indicating the amount of misalignment. The specification is rather unclear about the significance of the returned value. Also, the implementation does not work if the internal address is negative. This patch corrects both the specification and implementation. The CSR is at  and the proposed fix at .
More information about the nio-dev