Pinning of on-heap MemorySegment
Pedro Lamarão
pedro.lamarao at prodist.com.br
Mon Aug 28 15:24:12 UTC 2023
Em seg., 28 de ago. de 2023 às 11:58, Maurizio Cimadamore <
maurizio.cimadamore at oracle.com> escreveu:
> Yes, that is the worry. Note that, at the time of writing, only Shenandoah
> (which is going to be removed from 22) supports region-based pinning.
>
> Support for region-based pinning for G1 (the default) is in the works:
>
> https://bugs.openjdk.org/browse/JDK-8276094
>
> So, I believe that before we provide such an API, we should at least make
> sure we have _some_ GC which allow to pin w/o using GC locker.
>
With helpful JFR events, this sounds very reasonable to me.
Pinning would help hardware security module applications which need to feed
memory into native "cryptoki.dll" modules.
Such calls are not expected to take very long.
There should be interesting use cases inside SunPKCS11 security provider.
--
Pedro Lamarão
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/panama-dev/attachments/20230828/b49f8b23/attachment.htm>
More information about the panama-dev
mailing list