Re: RFR: 8349503: Consolidate multi-byte access into ByteArray

2025-02-27 Thread Chen Liang
On Wed, 5 Feb 2025 23:41:19 GMT, Chen Liang wrote: > `MethodHandles.byteArrayViewVarHandle` exposes checked multi-byte access to > byte arrays via VarHandle. This larger access speeds up many operations, yet > it cannot be used in early bootstrap, and as a result, people tend to use > `Unsafe`

Re: RFR: 8349503: Consolidate multi-byte access into ByteArray

2025-02-25 Thread Emanuel Peter
On Wed, 5 Feb 2025 23:41:19 GMT, Chen Liang wrote: > `MethodHandles.byteArrayViewVarHandle` exposes checked multi-byte access to > byte arrays via VarHandle. This larger access speeds up many operations, yet > it cannot be used in early bootstrap, and as a result, people tend to use > `Unsafe`

Re: RFR: 8349503: Consolidate multi-byte access into ByteArray

2025-02-13 Thread Phil Race
On Thu, 6 Feb 2025 14:30:30 GMT, Per Minborg wrote: >> `MethodHandles.byteArrayViewVarHandle` exposes checked multi-byte access to >> byte arrays via VarHandle. This larger access speeds up many operations, yet >> it cannot be used in early bootstrap, and as a result, people tend to use >> `Un

Re: RFR: 8349503: Consolidate multi-byte access into ByteArray

2025-02-06 Thread Roger Riggs
On Wed, 5 Feb 2025 23:41:19 GMT, Chen Liang wrote: > `MethodHandles.byteArrayViewVarHandle` exposes checked multi-byte access to > byte arrays via VarHandle. This larger access speeds up many operations, yet > it cannot be used in early bootstrap, and as a result, people tend to use > `Unsafe`

Re: RFR: 8349503: Consolidate multi-byte access into ByteArray

2025-02-06 Thread Per Minborg
On Wed, 5 Feb 2025 23:41:19 GMT, Chen Liang wrote: > `MethodHandles.byteArrayViewVarHandle` exposes checked multi-byte access to > byte arrays via VarHandle. This larger access speeds up many operations, yet > it cannot be used in early bootstrap, and as a result, people tend to use > `Unsafe`

Re: RFR: 8349503: Consolidate multi-byte access into ByteArray

2025-02-06 Thread Per Minborg
On Wed, 5 Feb 2025 23:41:19 GMT, Chen Liang wrote: > `MethodHandles.byteArrayViewVarHandle` exposes checked multi-byte access to > byte arrays via VarHandle. This larger access speeds up many operations, yet > it cannot be used in early bootstrap, and as a result, people tend to use > `Unsafe`

Re: RFR: 8349503: Consolidate multi-byte access into ByteArray

2025-02-06 Thread Paul Sandoz
On Wed, 5 Feb 2025 23:41:19 GMT, Chen Liang wrote: > `MethodHandles.byteArrayViewVarHandle` exposes checked multi-byte access to > byte arrays via VarHandle. This larger access speeds up many operations, yet > it cannot be used in early bootstrap, and as a result, people tend to use > `Unsafe`

Re: RFR: 8349503: Consolidate multi-byte access into ByteArray

2025-02-06 Thread Per Minborg
On Wed, 5 Feb 2025 23:41:19 GMT, Chen Liang wrote: > `MethodHandles.byteArrayViewVarHandle` exposes checked multi-byte access to > byte arrays via VarHandle. This larger access speeds up many operations, yet > it cannot be used in early bootstrap, and as a result, people tend to use > `Unsafe`

Re: RFR: 8349503: Consolidate multi-byte access into ByteArray

2025-02-06 Thread Raffaello Giulietti
On Wed, 5 Feb 2025 23:41:19 GMT, Chen Liang wrote: > `MethodHandles.byteArrayViewVarHandle` exposes checked multi-byte access to > byte arrays via VarHandle. This larger access speeds up many operations, yet > it cannot be used in early bootstrap, and as a result, people tend to use > `Unsafe`

Re: RFR: 8349503: Consolidate multi-byte access into ByteArray

2025-02-06 Thread Raffaello Giulietti
On Wed, 5 Feb 2025 23:41:19 GMT, Chen Liang wrote: > `MethodHandles.byteArrayViewVarHandle` exposes checked multi-byte access to > byte arrays via VarHandle. This larger access speeds up many operations, yet > it cannot be used in early bootstrap, and as a result, people tend to use > `Unsafe`

RFR: 8349503: Consolidate multi-byte access into ByteArray

2025-02-05 Thread Chen Liang
`MethodHandles.byteArrayViewVarHandle` exposes checked multi-byte access to byte arrays via VarHandle. This larger access speeds up many operations, yet it cannot be used in early bootstrap, and as a result, people tend to use `Unsafe` which can threaten memory safety of the Java Platform. To p