< prev index next >

test/hotspot/jtreg/compiler/uncommontrap/TestDeoptOOM.java

Print this page




   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 /*
  25  * @test
  26  * @bug 6898462
  27  * @summary failed reallocations of scalar replaced objects during deoptimization causes crash
  28  *
  29  * @run main/othervm -XX:-BackgroundCompilation -Xmx128M
  30  *      -XX:CompileCommand=exclude,compiler.uncommontrap.TestDeoptOOM::main
  31  *      -XX:CompileCommand=exclude,compiler.uncommontrap.TestDeoptOOM::m9_1
  32  *      compiler.uncommontrap.TestDeoptOOM
  33  */
  34 
  35 package compiler.uncommontrap;
  36 
  37 public class TestDeoptOOM {
  38 
  39     long f1;
  40     long f2;
  41     long f3;
  42     long f4;
  43     long f5;
  44 
  45     static class LinkedList {
  46         LinkedList l;
  47         long[] array;
  48         LinkedList(LinkedList l, int size) {
  49             array = new long[size];




   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 /*
  25  * @test
  26  * @bug 6898462 8198826
  27  * @summary failed reallocations of scalar replaced objects during deoptimization causes crash
  28  *
  29  * @run main/othervm -XX:-BackgroundCompilation -Xmx128M -XX:+IgnoreUnrecognizedVMOptions -XX:+VerifyStack
  30  *      -XX:CompileCommand=exclude,compiler.uncommontrap.TestDeoptOOM::main
  31  *      -XX:CompileCommand=exclude,compiler.uncommontrap.TestDeoptOOM::m9_1
  32  *      compiler.uncommontrap.TestDeoptOOM
  33  */
  34 
  35 package compiler.uncommontrap;
  36 
  37 public class TestDeoptOOM {
  38 
  39     long f1;
  40     long f2;
  41     long f3;
  42     long f4;
  43     long f5;
  44 
  45     static class LinkedList {
  46         LinkedList l;
  47         long[] array;
  48         LinkedList(LinkedList l, int size) {
  49             array = new long[size];


< prev index next >