Mon, 10 Jun 2013 15:57:32 +0100
8013576: Add stat support to LambdaToMethod
Summary: LambdaToMethod should emit info to help diagnose/test lambda metafactory problems
Reviewed-by: jjg, vromero
mcimadamore@1817 | 1 | --- MrefStat1.java |
mcimadamore@1817 | 2 | +++ MrefStat1.java |
mcimadamore@1817 | 3 | @@ -0,0 +1,34 @@ |
mcimadamore@1817 | 4 | +/* |
mcimadamore@1817 | 5 | + * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
mcimadamore@1817 | 6 | + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
mcimadamore@1817 | 7 | + * |
mcimadamore@1817 | 8 | + * This code is free software; you can redistribute it and/or modify it |
mcimadamore@1817 | 9 | + * under the terms of the GNU General Public License version 2 only, as |
mcimadamore@1817 | 10 | + * published by the Free Software Foundation. |
mcimadamore@1817 | 11 | + * |
mcimadamore@1817 | 12 | + * This code is distributed in the hope that it will be useful, but WITHOUT |
mcimadamore@1817 | 13 | + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
mcimadamore@1817 | 14 | + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
mcimadamore@1817 | 15 | + * version 2 for more details (a copy is included in the LICENSE file that |
mcimadamore@1817 | 16 | + * accompanied this code). |
mcimadamore@1817 | 17 | + * |
mcimadamore@1817 | 18 | + * You should have received a copy of the GNU General Public License version |
mcimadamore@1817 | 19 | + * 2 along with this work; if not, write to the Free Software Foundation, |
mcimadamore@1817 | 20 | + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
mcimadamore@1817 | 21 | + * |
mcimadamore@1817 | 22 | + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
mcimadamore@1817 | 23 | + * or visit www.oracle.com if you need additional information or have any |
mcimadamore@1817 | 24 | + * questions. |
mcimadamore@1817 | 25 | + */ |
mcimadamore@1817 | 26 | + |
mcimadamore@1817 | 27 | +// key: compiler.note.mref.stat.1 |
mcimadamore@1817 | 28 | +// options: -XDdumpLambdaToMethodStats |
mcimadamore@1817 | 29 | + |
mcimadamore@1817 | 30 | +class MrefStat1 { |
mcimadamore@1817 | 31 | + |
mcimadamore@1817 | 32 | + void m() { } |
mcimadamore@1817 | 33 | + |
mcimadamore@1817 | 34 | + static class Sub extends MrefStat1 { |
mcimadamore@1817 | 35 | + Runnable r = super::m; |
mcimadamore@1817 | 36 | + } |
mcimadamore@1817 | 37 | +} |