[lworld] RFR: 8373375: [lworld] Remove Unsafe.make/finishPrivateBuffer [v2]

Chen Liang liach at openjdk.org
Thu Feb 5 15:33:36 UTC 2026


On Thu, 5 Feb 2026 15:26:08 GMT, Jatin Bhateja <jbhateja at openjdk.org> wrote:

>> Chen Liang has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains six additional commits since the last revision:
>> 
>>  - Redundant if block per review
>>  - Merge branch 'lworld' of https://github.com/openjdk/valhalla into fix/buffer-removal
>>  - Merge branch 'lworld' of https://github.com/openjdk/valhalla into fix/buffer-removal
>>  - Missed test
>>  - Rollback breaking change
>>  - Remove private buffer
>
> Please refer to our earlier discussion on this
> https://github.com/openjdk/valhalla/pull/1688#issuecomment-3640741548

Hi @jatin-bhateja, I think you can remove the array restriction for vector types currently present in +vector, and use this "write zero vector to array", "unsafe hack array", and finally "read vector from array" approach as demonstrated in the test updates here.

In addition, we plan to update the multifield to make it less invasive to the other parts of the VM - we really just need an updated layout and one accessor maybe for compiler interface, we shouldn't change all field name access code in the entirety of hotspot.

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

PR Comment: https://git.openjdk.org/valhalla/pull/2018#issuecomment-3854395010


More information about the valhalla-dev mailing list