<div dir="ltr"><div dir="ltr">Em seg., 28 de ago. de 2023 às 11:45, Maurizio Cimadamore <<a href="mailto:maurizio.cimadamore@oracle.com">maurizio.cimadamore@oracle.com</a>> escreveu:</div><div dir="ltr"><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
To get rid of the warning, you have to explicitly opt-in the calling <br>
module into native access (which is done using the <br>
--enable-native-access command line flag).<br></blockquote></div><div><br></div><div>If I understand correctly, you are worried about the specific combination of native memory pinning with GC's incapable of granular pinning.</div><div>Wouldn't it be sufficient to warn about this specific combination, maybe even suggesting a more appropriate, alternative GC?</div><div>"warning: GC globally locked by native memory pinning (consider switching to XYZ GC)"</div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Pedro Lamarão</div></div></div></div>