On Tue, 15 Nov 2022 12:34:43 GMT, Maurizio Cimadamore <[email protected]> wrote:
>> This PR contains the API and implementation changes for JEP-434 [1]. A more >> detailed description of such changes, to avoid repetitions during the review >> process, is included as a separate comment. >> >> [1] - https://openjdk.org/jeps/434 > > Maurizio Cimadamore has updated the pull request incrementally with one > additional commit since the last revision: > > Add `since` tag in Module/ModuleLayer preview methods src/java.base/share/classes/java/lang/foreign/Arena.java line 63: > 61: * <em>after</em> the arena has been closed. The cost of providing this > guarantee varies based on the > 62: * number of threads that have access to the memory segments allocated by > the arena. For instance, if an arena > 63: * is always created and closed by one thread, and the memory segments > associated with the arena's scope are always Strictly, if a shared segment is created and is only accessed by a single thread, then we need to track thread usage in order to trivially ensure safety. I think we could reword so that if access is only *allowed* by a single thread, it is trivial. ------------- PR: https://git.openjdk.org/jdk/pull/10872
