On Fri, 13 Oct 2023 15:37:00 GMT, Maurizio Cimadamore <mcimadam...@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.

This pull request has now been integrated.

Changeset: 7cb2e6d6
Author:    Maurizio Cimadamore <mcimadam...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/7cb2e6d65b517b638a584149560a2ff9cc56c3b6
Stats:     496 lines in 12 files changed: 313 ins; 158 del; 25 mod

8317514: Ensure MemorySegment is initialized before touching 
NativeMemorySegmentImpl

Co-authored-by: Jorn Vernee <jver...@openjdk.org>
Reviewed-by: jvernee

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

PR: https://git.openjdk.org/jdk/pull/16187

Reply via email to