deduplicating lambda methods
bsrbnd at gmail.com
Tue Mar 27 18:38:51 UTC 2018
On 27 March 2018 at 19:20, Vicente Romero <vicente.romero at oracle.com> wrote:
> On 03/27/2018 11:07 AM, Maurizio Cimadamore wrote:
>> Hi Liam,
>> I believe --debug options are used to generate extra information out of
>> javac, not to alter its behavior - it's probably better to use an hidden
>> flag (e.g. -XDdeduplicateLambdas=...) - which is consistent to what we have
>> done for indy string concat.
> I will introduce this change before pushing the patch,
Should this option really be hidden? It's currently necessary to
disable de-duplication when debugging to preserve all LNT/LVT.
Of course, this could be a '-X...' instead of '-g' but documented, I think.
Note that de-duplication doesn't really alter javac behavior; let say
'in reverse' that lambda *duplication* would be an additional debug
More information about the amber-dev