On Thu, 27 Aug 2026 21:45:50 GMT, Chen Liang <[email protected]> wrote:
> 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. Right, in the interpreter it’s the same once the value is materialized, the c2 composition is what this pins. on cloning the holder instead, that goes through the plain whole object byte copy which has no value specific logic, the earlier version of this test did exactly that and was dropped for it, the value specific part is the flat field read feeding clone ------------- PR Comment: https://git.openjdk.org/jdk/pull/32284#issuecomment-5451772114
