On Tue, 3 Nov 2026 06:12:07 GMT, Leonid Mesnik <[email protected]> wrote:

>> test/hotspot/jtreg/serviceability/jvmti/events/VMObjectAlloc/VMObjectAllocClone/VMObjectAllocCloneTest.java
>>  line 27:
>> 
>>> 25:  * @test
>>> 26:  * @bug 8396399
>>> 27:  * @summary Test verifies how VMObjectAlloc works for clone() method.
>> 
>> The test doesn't actually ensure the intrinsic is used though.
>
> Agree, I just reproduced the actual failures while fixing. 
> Not sure if there is easy way to check that expected optimizations were 
> called. So the test just rely on the optimization which are done with -Xcomp 
> C1/C2.

I suggest to add two test methods, for cloneObject and cloneArray, and call 
them in loop to trigger JIT compilation.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/33684#discussion_r4457198577

Reply via email to