On Mon, 10 Aug 2026 19:45:26 GMT, Shiv Shah <[email protected]> wrote:

> Adds one case to the value objects test: cloning a value object read from a 
> flattened field. The field read materializes the value from the embedded 
> payload and clone returns it. Looks simple but the chain crosses the read 
> materialization and buffering machinery, and optimization changes there can 
> break it, so worth pinning.
> 
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

Just curious, what's the significance of cloning a value read from a flattened 
field? This operation is the same as cloning a value object from another source 
in the interpreter, maybe only different in C2.

If we are testing how a scalarzied value object is cloned, we might clone the 
holder object and ensure the inner value objects of the original and clone 
holder objects are indistinguishable.

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

PR Comment: https://git.openjdk.org/jdk/pull/32284#issuecomment-5445596296

Reply via email to