RFR: 8317514: Ensure MemorySegment is initialized before touching NativeMemorySegmentImpl [v2]

Jorn Vernee jvernee at openjdk.org
Fri Oct 13 17:31:16 UTC 2023


On Fri, 13 Oct 2023 17:25:03 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> This PR makes sure that `MemorySegment` is initialized *before* any of its subclasses.
>> This is done by centralizing all the memory segment factories in a single implementation class (`SegmentFactories`).
>> Doing so addresses a possible deadlock condition when using multiple threads.
>
> Maurizio Cimadamore has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Address review comments

Marked as reviewed by jvernee (Reviewer).

-------------

PR Review: https://git.openjdk.org/jdk/pull/16187#pullrequestreview-1676985669


More information about the core-libs-dev mailing list