hotspot/test/compiler/7052494/Test7052494.java
author duke
Wed, 05 Jul 2017 19:51:52 +0200
changeset 25650 de3462562eaa
parent 24340 30d481fc4e30
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
     1
/*
24340
30d481fc4e30 8042214: add @ignore tag to all excluded jtreg tests in test/compiler
iignatyev
parents: 10030
diff changeset
     2
 * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
     4
 *
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
     7
 * published by the Free Software Foundation.
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
     8
 *
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    13
 * accompanied this code).
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    14
 *
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    18
 *
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    21
 * questions.
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    22
 *
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    23
 */
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    24
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    25
/**
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    26
 * @test
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    27
 * @bug 7052494
24340
30d481fc4e30 8042214: add @ignore tag to all excluded jtreg tests in test/compiler
iignatyev
parents: 10030
diff changeset
    28
 * @ignore 7154567
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    29
 * @summary Eclipse test fails on JDK 7 b142
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    30
 *
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    31
 * @run main/othervm -Xbatch Test7052494
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    32
 */
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    33
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    34
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    35
public class Test7052494 {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    36
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    37
  static int test1(int i, int limit) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    38
    int result = 0;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    39
    while (i++ != 0) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    40
      if (result >= limit)
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    41
        break;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    42
      result = i*2;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    43
    }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    44
    return result;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    45
  }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    46
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    47
  static int test2(int i, int limit) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    48
    int result = 0;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    49
    while (i-- != 0) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    50
      if (result <= limit)
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    51
        break;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    52
      result = i*2;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    53
    }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    54
    return result;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    55
  }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    56
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    57
  static void test3(int i, int limit, int arr[]) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    58
    while (i++ != 0) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    59
      if (arr[i-1] >= limit)
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    60
        break;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    61
      arr[i] = i*2;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    62
    }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    63
  }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    64
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    65
  static void test4(int i, int limit, int arr[]) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    66
    while (i-- != 0) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    67
      if (arr[arr.length + i + 1] <= limit)
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    68
        break;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    69
      arr[arr.length + i] = i*2;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    70
    }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    71
  }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    72
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    73
  // Empty loop rolls through MAXINT if i > 0
10030
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
    74
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
    75
  static final int limit5 = Integer.MIN_VALUE + 10000;
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
    76
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    77
  static int test5(int i) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    78
    int result = 0;
10030
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
    79
    while (i++ != limit5) {
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    80
      result = i*2;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    81
    }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    82
    return result;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    83
  }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    84
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    85
  // Empty loop rolls through MININT if i < 0
10030
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
    86
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
    87
  static final int limit6 = Integer.MAX_VALUE - 10000;
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
    88
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    89
  static int test6(int i) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    90
    int result = 0;
10030
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
    91
    while (i-- != limit6) {
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    92
      result = i*2;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    93
    }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    94
    return result;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    95
  }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    96
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    97
  public static void main(String [] args) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    98
    boolean failed = false;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    99
    int[] arr = new int[8];
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   100
    int[] ar3 = { 0, 0, 4, 6, 8, 10, 0, 0 };
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   101
    int[] ar4 = { 0, 0, 0, -10, -8, -6, -4, 0 };
10030
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
   102
    System.out.println("test1");
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   103
    for (int i = 0; i < 11000; i++) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   104
      int k = test1(1, 10);
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   105
      if (k != 10) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   106
        System.out.println("FAILED: " + k + " != 10");
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   107
        failed = true;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   108
        break;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   109
      }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   110
    }
10030
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
   111
    System.out.println("test2");
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   112
    for (int i = 0; i < 11000; i++) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   113
      int k = test2(-1, -10);
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   114
      if (k != -10) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   115
        System.out.println("FAILED: " + k + " != -10");
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   116
        failed = true;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   117
        break;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   118
      }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   119
    }
10030
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
   120
    System.out.println("test3");
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   121
    for (int i = 0; i < 11000; i++) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   122
      java.util.Arrays.fill(arr, 0);
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   123
      test3(1, 10, arr);
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   124
      if (!java.util.Arrays.equals(arr,ar3)) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   125
        System.out.println("FAILED: arr = { " + arr[0] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   126
                                              + arr[1] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   127
                                              + arr[2] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   128
                                              + arr[3] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   129
                                              + arr[4] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   130
                                              + arr[5] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   131
                                              + arr[6] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   132
                                              + arr[7] + " }");
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   133
        failed = true;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   134
        break;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   135
      }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   136
    }
10030
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
   137
    System.out.println("test4");
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   138
    for (int i = 0; i < 11000; i++) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   139
      java.util.Arrays.fill(arr, 0);
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   140
      test4(-1, -10, arr);
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   141
      if (!java.util.Arrays.equals(arr,ar4)) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   142
        System.out.println("FAILED: arr = { " + arr[0] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   143
                                              + arr[1] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   144
                                              + arr[2] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   145
                                              + arr[3] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   146
                                              + arr[4] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   147
                                              + arr[5] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   148
                                              + arr[6] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   149
                                              + arr[7] + " }");
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   150
        failed = true;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   151
        break;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   152
      }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   153
    }
10030
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
   154
    System.out.println("test5");
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   155
    for (int i = 0; i < 11000; i++) {
10030
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
   156
      int k = test5(limit6);
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
   157
      if (k != limit5*2) {
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
   158
        System.out.println("FAILED: " + k + " != " + limit5*2);
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   159
        failed = true;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   160
        break;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   161
      }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   162
    }
10030
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
   163
    System.out.println("test6");
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   164
    for (int i = 0; i < 11000; i++) {
10030
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
   165
      int k = test6(limit5);
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
   166
      if (k != limit6*2) {
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
   167
        System.out.println("FAILED: " + k + " != " + limit6*2);
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   168
        failed = true;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   169
        break;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   170
      }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   171
    }
10030
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
   172
    System.out.println("finish");
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   173
    if (failed)
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   174
      System.exit(97);
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   175
  }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   176
}