<div dir="ltr">Hi guys.<div><div><br></div><div>I don't know whether it is the correct mailing list to ask, but I will try it.</div><div><br></div><div>If I got JEP correctly, value objects are inlined in case of usage of the C2 compiler if they are passed as function arguments. It means that we will have an overhead of copying data. So likely, this optimization will depend on the size of the value object. But what about passing the stack pointer with the ability to convert stack-based value objects into heap objects if the passed references leak the called method? </div><div><br></div><div>Are such optimizations considered or possible?<br></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Best regards,<br>Andrii Lomakin.<br><br></div></div></div></div></div></div>