test/compiler/uncommontrap/8009761/Test8009761.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff test/compiler/uncommontrap/8009761

test/compiler/uncommontrap/8009761/Test8009761.java

Print this page




   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 import sun.hotspot.WhiteBox;
  25 import java.lang.reflect.Method;
  26 
  27 /*
  28  * @test
  29  * @bug 8009761
  30  * @library /testlibrary /testlibrary/whitebox
  31  * @summary Deoptimization on sparc doesn't set Llast_SP correctly in the interpreter frames it creates
  32  * @build Test8009761
  33  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  34  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  35  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:CompileCommand=exclude,Test8009761::m2 -XX:-UseOnStackReplacement -XX:-BackgroundCompilation -Xss256K Test8009761
  36  */
  37 public class Test8009761 {
  38 
  39     private static final WhiteBox WHITE_BOX = WhiteBox.getWhiteBox();
  40     private static int COMP_LEVEL_SIMPLE = 1;
  41     private static int COMP_LEVEL_FULL_OPTIMIZATION = 4;
  42     private static Method m3 = null;
  43 
  44     static Object m1(boolean deopt) {
  45         // When running interpreted, on sparc, the caller's stack is
  46         // extended for the locals and the caller's frame is restored
  47         // on return.
  48         long l0, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12,
  49         l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24,
  50         l25, l26, l27, l28, l29, l30, l31, l32, l33, l34, l35, l36,
  51         l37, l38, l39, l40, l41, l42, l43, l44, l45, l46, l47, l48,
  52         l49, l50, l51, l52, l53, l54, l55, l56, l57, l58, l59, l60,
  53         l61, l62, l63, l64, l65, l66, l67, l68, l69, l70, l71, l72,
  54         l73, l74, l75, l76, l77, l78, l79, l80, l81, l82, l83, l84,




   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 import jdk.testlib.WhiteBox;
  25 import java.lang.reflect.Method;
  26 
  27 /*
  28  * @test
  29  * @bug 8009761
  30  * @library /testlibrary /../../test/lib
  31  * @summary Deoptimization on sparc doesn't set Llast_SP correctly in the interpreter frames it creates
  32  * @build Test8009761
  33  * @run main ClassFileInstaller jdk.testlib.WhiteBox
  34  *                              jdk.testlib.WhiteBox$WhiteBoxPermission
  35  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:CompileCommand=exclude,Test8009761::m2 -XX:-UseOnStackReplacement -XX:-BackgroundCompilation -Xss256K Test8009761
  36  */
  37 public class Test8009761 {
  38 
  39     private static final WhiteBox WHITE_BOX = WhiteBox.getWhiteBox();
  40     private static int COMP_LEVEL_SIMPLE = 1;
  41     private static int COMP_LEVEL_FULL_OPTIMIZATION = 4;
  42     private static Method m3 = null;
  43 
  44     static Object m1(boolean deopt) {
  45         // When running interpreted, on sparc, the caller's stack is
  46         // extended for the locals and the caller's frame is restored
  47         // on return.
  48         long l0, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12,
  49         l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24,
  50         l25, l26, l27, l28, l29, l30, l31, l32, l33, l34, l35, l36,
  51         l37, l38, l39, l40, l41, l42, l43, l44, l45, l46, l47, l48,
  52         l49, l50, l51, l52, l53, l54, l55, l56, l57, l58, l59, l60,
  53         l61, l62, l63, l64, l65, l66, l67, l68, l69, l70, l71, l72,
  54         l73, l74, l75, l76, l77, l78, l79, l80, l81, l82, l83, l84,


test/compiler/uncommontrap/8009761/Test8009761.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File