< prev index next >

test/compiler/uncommontrap/TestStackBangMonitorOwned.java

Print this page
rev 7563 : 8067941: [TESTBUG] Fix tests for OS with 64K page size.


   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 /*
  25  * @test
  26  * @bug 8032410
  27  * @summary Stack overflow at deoptimization doesn't release owned monitors
  28  * @run main/othervm -XX:-BackgroundCompilation -XX:CompileCommand=dontinline,TestStackBangMonitorOwned::m1 -XX:CompileCommand=exclude,TestStackBangMonitorOwned::m2 -Xss256K -XX:-UseOnStackReplacement TestStackBangMonitorOwned
  29  *
  30  */
  31 public class TestStackBangMonitorOwned {
  32 
  33     static class UnloadedClass1 {
  34         volatile int field;
  35     }
  36 
  37     static Object m1(boolean deopt) {
  38         long l0, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12,
  39         l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24,
  40         l25, l26, l27, l28, l29, l30, l31, l32, l33, l34, l35, l36,
  41         l37, l38, l39, l40, l41, l42, l43, l44, l45, l46, l47, l48,
  42         l49, l50, l51, l52, l53, l54, l55, l56, l57, l58, l59, l60,
  43         l61, l62, l63, l64, l65, l66, l67, l68, l69, l70, l71, l72,
  44         l73, l74, l75, l76, l77, l78, l79, l80, l81, l82, l83, l84,
  45         l85, l86, l87, l88, l89, l90, l91, l92, l93, l94, l95, l96,
  46         l97, l98, l99, l100, l101, l102, l103, l104, l105, l106, l107,
  47         l108, l109, l110, l111, l112, l113, l114, l115, l116, l117,
  48         l118, l119, l120, l121, l122, l123, l124, l125, l126, l127,




   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 /*
  25  * @test
  26  * @bug 8032410
  27  * @summary Stack overflow at deoptimization doesn't release owned monitors
  28  * @run main/othervm -XX:-BackgroundCompilation -XX:CompileCommand=dontinline,TestStackBangMonitorOwned::m1 -XX:CompileCommand=exclude,TestStackBangMonitorOwned::m2 -Xss392K -XX:-UseOnStackReplacement TestStackBangMonitorOwned
  29  *
  30  */
  31 public class TestStackBangMonitorOwned {
  32 
  33     static class UnloadedClass1 {
  34         volatile int field;
  35     }
  36 
  37     static Object m1(boolean deopt) {
  38         long l0, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12,
  39         l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24,
  40         l25, l26, l27, l28, l29, l30, l31, l32, l33, l34, l35, l36,
  41         l37, l38, l39, l40, l41, l42, l43, l44, l45, l46, l47, l48,
  42         l49, l50, l51, l52, l53, l54, l55, l56, l57, l58, l59, l60,
  43         l61, l62, l63, l64, l65, l66, l67, l68, l69, l70, l71, l72,
  44         l73, l74, l75, l76, l77, l78, l79, l80, l81, l82, l83, l84,
  45         l85, l86, l87, l88, l89, l90, l91, l92, l93, l94, l95, l96,
  46         l97, l98, l99, l100, l101, l102, l103, l104, l105, l106, l107,
  47         l108, l109, l110, l111, l112, l113, l114, l115, l116, l117,
  48         l118, l119, l120, l121, l122, l123, l124, l125, l126, l127,


< prev index next >