[lworld] RFR: 8370450: [lworld] Alternate implementation of the substitutability test method [v2]

Frederic Parain fparain at openjdk.org
Thu Oct 23 20:55:22 UTC 2025


On Thu, 23 Oct 2025 20:24:13 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

> When comparing the oops, do they need some additional handling? Supposing for example, they are buffered value objects (from different sources). It seems necessary to recurse (effectively) with those oops/refs.

The recursion is handled in ValueObjectMethods.isSubstitutableAlt() line 1447, the oops are compare using an acmp bytecode which will recurse if both oops are non null and instances of the same value class.

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

PR Comment: https://git.openjdk.org/valhalla/pull/1695#issuecomment-3439098903


More information about the valhalla-dev mailing list