On Mon, 18 Mar 2024 14:35:06 GMT, Claes Redestad <redes...@openjdk.org> wrote:
> Does this change how early `Unsafe` is initialized, and does it in turn have > dependencies on `StringUTF16`? `StringUTF16` is loaded very early, especially > if `-XX:-CompactStrings` is supplied and I would assume the only reason this > was added in the first place was to avoid some bootstrapping issue. I am unsure of the initialization order. Unsafe was added 2015, a few weeks before the explicit C code was added. This might indicate the previous solution was deliberate or it might be the case, the new method was not known by the author at the time. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18348#issuecomment-2004235134