Official support for Unsafe

Quân Anh Mai anhmdq at gmail.com
Fri Jan 12 19:19:11 UTC 2024


It is really late here so I will try that tomorrow.

Note that usage of the everything segment requires --enable-native-access,
which in general gives an unsafe notice anyway.

Regards,
Quan Anh

On Sat, 13 Jan 2024 at 01:29, Maurizio Cimadamore <
maurizio.cimadamore at oracle.com> wrote:

>
> On 12/01/2024 17:26, Quân Anh Mai wrote:
> > FYI, in my submission to 1brc, using Unsafe decreases the execution
> > time from 3.25s to 2.57s on the test machine.
>
> Just curious - what is the difference compared with the everything
> segment trick?
>
> (While I know it can't do on-heap access, perhaps you can tweak the code
> to be all off-heap?)
>
> Maurizio
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20240113/3c23c7f2/attachment-0001.htm>


More information about the amber-dev mailing list