Official support for Unsafe
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Fri Jan 12 19:21:11 UTC 2024
On 12/01/2024 19:19, Quân Anh Mai wrote:
> 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.
Sure, I'm mostly curious as to how much of the gap is caused by bound
check for on-heap vs. off-heap access. In my experience the latter
almost always dominate the former.
Maurizio
>
> 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/20240112/9663e7bf/attachment.htm>
More information about the amber-dev
mailing list