Pinning of on-heap MemorySegment
Pedro Lamarão
pedro.lamarao at prodist.com.br
Mon Aug 28 14:52:54 UTC 2023
Em seg., 28 de ago. de 2023 às 11:45, Maurizio Cimadamore <
maurizio.cimadamore at oracle.com> escreveu:
To get rid of the warning, you have to explicitly opt-in the calling
> module into native access (which is done using the
> --enable-native-access command line flag).
>
If I understand correctly, you are worried about the specific combination
of native memory pinning with GC's incapable of granular pinning.
Wouldn't it be sufficient to warn about this specific combination, maybe
even suggesting a more appropriate, alternative GC?
"warning: GC globally locked by native memory pinning (consider switching
to XYZ GC)"
--
Pedro Lamarão
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/panama-dev/attachments/20230828/a674b71f/attachment.htm>
More information about the panama-dev
mailing list