RFR: 8330851: C2: More efficient TypeFunc creation [v2]
Amit Kumar
amitkumar at openjdk.org
Sun Nov 24 09:18:52 UTC 2024
On Mon, 18 Nov 2024 20:00:48 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:
>> "first" call is made from here because of shared space. Otherwise the object-allocation will deleted and VM will crash. That's what I observed. And again that was the reason why the initialization call is made from `Type::Initialize_shared`.
>
> My suggestion is about refactoring the code, so initialization is performed in `OptoRuntime` code (e.g., in `OptoRuntime::initialize_types()`). Then you call it from here.
@iwanowww can you take another look. I have pushed the requested changes.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21782#discussion_r1850804697
More information about the hotspot-compiler-dev
mailing list