[lworld] RFR: 8352647: [lworld] Remove larval InlineTypeNode in Unsafe intrinsics [v5]
Tobias Hartmann
thartmann at openjdk.org
Mon Apr 7 05:27:01 UTC 2025
On Fri, 4 Apr 2025 04:33:34 GMT, Quan Anh Mai <qamai at openjdk.org> wrote:
>> Hi,
>>
>> As a step of #1405, I would like to remove the usage of larval value objects in `Unsafe` intrinsics. This patch also tries to make sure that `Unsafe::makePrivateBuffer` and `Unsafe::finishPrivateBuffer` are always inlined, so that larval objects do not cross call boundaries except for invoking object constructors.
>>
>> Please take a look and review this PR, thanks a lot.
>
> Quan Anh Mai has updated the pull request incrementally with one additional commit since the last revision:
>
> make it more explicit
All tests passed. The changes look good to me.
src/hotspot/share/opto/library_call.cpp line 2669:
> 2667: const Type* type = gvn().type(value);
> 2668: if (!type->is_inlinetypeptr()) {
> 2669: C->record_method_not_compilable("value passed to Unsafe::makePrivateBuffer is not of a constant value type");
Do we really need to make the method non-compilable?
-------------
Marked as reviewed by thartmann (Committer).
PR Review: https://git.openjdk.org/valhalla/pull/1406#pullrequestreview-2716296970
PR Review Comment: https://git.openjdk.org/valhalla/pull/1406#discussion_r2013631996
More information about the valhalla-dev
mailing list