> See the JBS issue for an extended problem description.
>
> This patch changes the specification and implementation of
> `MethodHandles::byteArrayViewVarHandle`,
> `MethodHandles::byteBufferViewVarHandle`, `ByteBuffer::alignedSlice`, and
> `ByteBuffer::alignmentOffset` to weaken the guarantees
On Thu, 1 Feb 2024 20:10:29 GMT, Jorn Vernee wrote:
>> See the JBS issue for an extended problem description.
>>
>> This patch changes the specification and implementation of
>> `MethodHandles::byteArrayViewVarHandle`,
>> `MethodHandles::byteBufferViewVarHandle`, `ByteBuffer::alignedSlice`, an
On Thu, 1 Feb 2024 20:10:29 GMT, Jorn Vernee wrote:
>> See the JBS issue for an extended problem description.
>>
>> This patch changes the specification and implementation of
>> `MethodHandles::byteArrayViewVarHandle`,
>> `MethodHandles::byteBufferViewVarHandle`, `ByteBuffer::alignedSlice`, an
> See the JBS issue for an extended problem description.
>
> This patch changes the specification and implementation of
> `MethodHandles::byteArrayViewVarHandle`,
> `MethodHandles::byteBufferViewVarHandle`, `ByteBuffer::alignedSlice`, and
> `ByteBuffer::alignmentOffset` to weaken the guarantees
On Wed, 15 Nov 2023 22:46:03 GMT, Jorn Vernee wrote:
> See the JBS issue for an extended problem description.
>
> This patch changes the specification and implementation of
> `MethodHandles::byteArrayViewVarHandle`,
> `MethodHandles::byteBufferViewVarHandle`, `ByteBuffer::alignedSlice`, and
>
On Tue, 23 Jan 2024 18:24:59 GMT, Jorn Vernee wrote:
>> Should we make these unaligned access modes throw ISE like before, when the
>> given index is unaligned?
>
> You mean `get` and `set`? They should never throw, as unaligned access is
> fine. For other access modes, we can never guarantee t
On Tue, 23 Jan 2024 14:43:24 GMT, Chen Liang wrote:
> Also curious, is there any documentation (like JVMS) that allows JVMs to make
> no offset into byte arrays aligned for larger access? Would be helpful if we
> can have a reference here.
There is simply no guarantee in the JVMS that array el
On Tue, 23 Jan 2024 14:30:08 GMT, Chen Liang wrote:
>> Good idea. Thanks
>
> Should we make these unaligned access modes throw ISE like before, when the
> given index is unaligned?
You mean `get` and `set`? They should never throw, as unaligned access is fine.
For other access modes, we can ne
On Thu, 16 Nov 2023 18:10:28 GMT, Jorn Vernee wrote:
>> src/java.base/share/classes/java/lang/invoke/MethodHandles.java line 4518:
>>
>>> 4516: * Only plain {@linkplain VarHandle.AccessMode#GET get} and
>>> {@linkplain VarHandle.AccessMode#SET set}
>>> 4517: * access modes are support
On Wed, 15 Nov 2023 22:46:03 GMT, Jorn Vernee wrote:
> See the JBS issue for an extended problem description.
>
> This patch changes the specification and implementation of
> `MethodHandles::byteArrayViewVarHandle`,
> `MethodHandles::byteBufferViewVarHandle`, `ByteBuffer::alignedSlice`, and
>
On Wed, 15 Nov 2023 22:46:03 GMT, Jorn Vernee wrote:
> See the JBS issue for an extended problem description.
>
> This patch changes the specification and implementation of
> `MethodHandles::byteArrayViewVarHandle`,
> `MethodHandles::byteBufferViewVarHandle`, `ByteBuffer::alignedSlice`, and
>
On Thu, 16 Nov 2023 06:29:20 GMT, Alan Bateman wrote:
>> See the JBS issue for an extended problem description.
>>
>> This patch changes the specification and implementation of
>> `MethodHandles::byteArrayViewVarHandle`,
>> `MethodHandles::byteBufferViewVarHandle`, `ByteBuffer::alignedSlice`,
See the JBS issue for an extended problem description.
This patch changes the specification and implementation of
`MethodHandles::byteArrayViewVarHandle`,
`MethodHandles::byteBufferViewVarHandle`, `ByteBuffer::alignedSlice`, and
`ByteBuffer::alignmentOffset` to weaken the guarantees they make a
On Wed, 15 Nov 2023 22:46:03 GMT, Jorn Vernee wrote:
> See the JBS issue for an extended problem description.
>
> This patch changes the specification and implementation of
> `MethodHandles::byteArrayViewVarHandle`,
> `MethodHandles::byteBufferViewVarHandle`, `ByteBuffer::alignedSlice`, and
>
On Thu, 16 Nov 2023 17:34:40 GMT, Paul Sandoz wrote:
>> See the JBS issue for an extended problem description.
>>
>> This patch changes the specification and implementation of
>> `MethodHandles::byteArrayViewVarHandle`,
>> `MethodHandles::byteBufferViewVarHandle`, `ByteBuffer::alignedSlice`, a
On Thu, 16 Nov 2023 19:15:25 GMT, Jorn Vernee wrote:
>> But... surely if I'm just accessing bytes the access cannot possibly be
>> mis-aligned?
>
> Right. I think there is a difference between 'unaligned' and 'misaligned'.
> Unaligned means there is no effort made to align the access (so it _ma
On Thu, 16 Nov 2023 17:31:46 GMT, Paul Sandoz wrote:
>> See the JBS issue for an extended problem description.
>>
>> This patch changes the specification and implementation of
>> `MethodHandles::byteArrayViewVarHandle`,
>> `MethodHandles::byteBufferViewVarHandle`, `ByteBuffer::alignedSlice`, a
On Thu, 16 Nov 2023 18:52:03 GMT, Maurizio Cimadamore
wrote:
>> src/java.base/share/classes/java/lang/invoke/MethodHandles.java line 4610:
>>
>>> 4608: * {@link Double#doubleToRawLongBits}, respectively).
>>> 4609: *
>>> 4610: * Access to heap byte buffers is always unaligned.
>
On Wed, 15 Nov 2023 22:46:03 GMT, Jorn Vernee wrote:
> See the JBS issue for an extended problem description.
>
> This patch changes the specification and implementation of
> `MethodHandles::byteArrayViewVarHandle`,
> `MethodHandles::byteBufferViewVarHandle`, `ByteBuffer::alignedSlice`, and
>
On Wed, 15 Nov 2023 22:46:03 GMT, Jorn Vernee wrote:
> See the JBS issue for an extended problem description.
>
> This patch changes the specification and implementation of
> `MethodHandles::byteArrayViewVarHandle`,
> `MethodHandles::byteBufferViewVarHandle`, `ByteBuffer::alignedSlice`, and
>
20 matches
Mail list logo