On Tue, 21 Mar 2023 00:35:40 GMT, Paul Sandoz <psan...@openjdk.org> wrote:
>> Per Minborg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add example for Option::captureStateLayout > > src/java.base/share/classes/java/lang/foreign/Linker.java line 479: > >> 477: * Otherwise, the invocation throws {@link >> WrongThreadException}; and</li> >> 478: * <li>{@code A} is kept alive during the invocation. For >> instance, if {@code A} has been obtained using a >> 479: * {@linkplain Arena#ofConfined() confined arena}, any attempt >> to {@linkplain Arena#close() close} > > Is that correct? Do you mean a shared arena? The text is correct (you can still close a confined arena from inside an upcall), but I agree that perhaps using a shared arena might be a bit more intuitive. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/13079#discussion_r1143118512