[lworld] RFR: 8368933: [lworld] Unsafe.arrayBaseOffset() ambiguous

Chen Liang liach at openjdk.org
Fri Oct 17 16:34:50 UTC 2025


On Fri, 17 Oct 2025 16:13:11 GMT, Frederic Parain <fparain at openjdk.org> wrote:

> Renaming of Unsafe methods to prevent ambiguity when null is passed in argument.
> 
> Tested with Mach5 tier1-3.

Marked as reviewed by liach (Committer).

Another way could be that we update AddressComputationContractTest to cast null to Class. That test should be updated to cover the new instance-based offset/scale methods too.

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

PR Review: https://git.openjdk.org/valhalla/pull/1684#pullrequestreview-3351071834
PR Comment: https://git.openjdk.org/valhalla/pull/1684#issuecomment-3416292850


More information about the valhalla-dev mailing list