RFR: 8295044: Implementation of Foreign Function and Memory API (Second Preview) [v22]
Per Minborg
pminborg at openjdk.org
Tue Nov 15 14:55:14 UTC 2022
On Tue, 15 Nov 2022 14:49:30 GMT, Per Minborg <pminborg at openjdk.org> wrote:
>> 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.~~
ok. So reading on the initial text makes sense. So, my comment above should be disregarded.
-------------
PR: https://git.openjdk.org/jdk/pull/10872
More information about the serviceability-dev
mailing list