Pass by reference: final and effectively final parameters and qualifying return types

Suminda Sirinath Salpitikorala Dharmasena sirinath1978m at
Tue Jan 5 13:16:49 UTC 2021

What I am suggesting is if a value is not modified in a method just pass it
as reference in JITed code, at least, as there is no need to make a copy of
the value. The likes of out parameters are not needed in Java but can
benefit with some construct like reference (,

This is to ensure data does not get unnecessarily duplicated and copied.

With the introduction of value types having reference type can be of
benefit so what large value types are not copied unnecessarily.


More information about the valhalla-dev mailing list