deduplicating lambda methods
vicente.romero at oracle.com
Tue Mar 27 18:43:42 UTC 2018
On 03/27/2018 02:38 PM, B. Blaser wrote:
> 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
err, I think you have a good point. I have already pushed the patch to:
http://hg.openjdk.java.net/jdk/jdk, but we can still rework the option
More information about the amber-dev