RFR: JDK-8025636 Hide lambda proxy frames in stacktraces
Staffan Larsen
staffan.larsen at oracle.com
Tue Feb 17 06:33:14 UTC 2015
> On 17 feb 2015, at 02:16, John Rose <john.r.rose at oracle.com> wrote:
>
> On Feb 16, 2015, at 6:25 AM, Staffan Larsen <staffan.larsen at oracle.com <mailto:staffan.larsen at oracle.com>> wrote:
>>
>> new webrev: http://cr.openjdk.java.net/~sla/8025636/webrev.02/ <http://cr.openjdk.java.net/~sla/8025636/webrev.02/>
> Looks good; ship it.
Thanks.
>
> To me this fix raises more questions:
>
> 1. Are there other places where we generate ACC_SYNTHETIC that should also get @Hidden annotations?
>
> 2. Should the JVM be filtering stack frames for ACC_SYNTHETIC (or ACC_BRIDGE or ACC_MANDATED) calls? (By default? Or perhaps as a new option?)
The first shot at fixing this bug was to filter out ACC_SYNTHETIC. The drawback was that the actual lambda method are marked ACC_SYNTHETIC, so that filtered too much.
/Staffan
>
> 3. When will we have a reasonable stack walking mechanism where we can program such policies in JDK library code, instead of hacking the JVM?
>
> — John
>
> P.S. https://bugs.openjdk.java.net/browse/JDK-8043814 <https://bugs.openjdk.java.net/browse/JDK-8043814>
More information about the core-libs-dev
mailing list