On Tue, 3 Nov 2026 16:03:40 GMT, Vladimir Kozlov <[email protected]> wrote:

>> 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.

I updated test to provoke compilation using loop and added -Xbatch to ensure 
that compiled method is used.

I didn't add C1/C2 specific tests, not sure if it   makes sense to execute them 
every time.

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

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

Reply via email to