Tue, 20 Aug 2019 07:47:13 +0200
8228888: C2 compilation fails with assert "m has strange control"
Summary: Weakened too strong assert.
Reviewed-by: kvn, roland
thartmann@9782 | 1 | /* |
thartmann@9782 | 2 | * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. |
thartmann@9782 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
thartmann@9782 | 4 | * |
thartmann@9782 | 5 | * This code is free software; you can redistribute it and/or modify it |
thartmann@9782 | 6 | * under the terms of the GNU General Public License version 2 only, as |
thartmann@9782 | 7 | * published by the Free Software Foundation. |
thartmann@9782 | 8 | * |
thartmann@9782 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
thartmann@9782 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
thartmann@9782 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
thartmann@9782 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
thartmann@9782 | 13 | * accompanied this code). |
thartmann@9782 | 14 | * |
thartmann@9782 | 15 | * You should have received a copy of the GNU General Public License version |
thartmann@9782 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
thartmann@9782 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
thartmann@9782 | 18 | * |
thartmann@9782 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
thartmann@9782 | 20 | * or visit www.oracle.com if you need additional information or have any |
thartmann@9782 | 21 | * questions. |
thartmann@9782 | 22 | * |
thartmann@9782 | 23 | */ |
thartmann@9782 | 24 | |
thartmann@9782 | 25 | super public class compiler/loopopts/StrangeControl |
thartmann@9782 | 26 | version 51:0 |
thartmann@9782 | 27 | { |
thartmann@9782 | 28 | |
thartmann@9782 | 29 | static Field field:"I"; |
thartmann@9782 | 30 | |
thartmann@9782 | 31 | public static Method test:"(I)V" |
thartmann@9782 | 32 | stack 2 locals 2 |
thartmann@9782 | 33 | { |
thartmann@9782 | 34 | iconst_0; |
thartmann@9782 | 35 | istore 1; |
thartmann@9782 | 36 | L1: stack_frame_type append; |
thartmann@9782 | 37 | locals_map int; |
thartmann@9782 | 38 | iinc 1, 1; |
thartmann@9782 | 39 | iload 1; |
thartmann@9782 | 40 | iconst_2; |
thartmann@9782 | 41 | if_icmple L1; |
thartmann@9782 | 42 | L2: stack_frame_type same; |
thartmann@9782 | 43 | iload_0; |
thartmann@9782 | 44 | putstatic Field field:"I"; |
thartmann@9782 | 45 | goto L1; |
thartmann@9782 | 46 | } |
thartmann@9782 | 47 | |
thartmann@9782 | 48 | } // end Class StrangeControl |