hotspot/test/compiler/loopopts/7052494/Test7052494.java
author pchistyakov
Fri, 16 Jan 2015 15:08:20 +0300
changeset 28646 1cf6b04a87d8
parent 27699 9913b19c0948
permissions -rw-r--r--
8068231: Several tests are still excluded Reviewed-by: kvn, iignatyev
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
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    28
 * @summary Eclipse test fails on JDK 7 b142
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    29
 *
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    30
 * @run main/othervm -Xbatch Test7052494
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    31
 */
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
public class Test7052494 {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    35
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    36
  static int test1(int i, int limit) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    37
    int result = 0;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    38
    while (i++ != 0) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    39
      if (result >= limit)
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    40
        break;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    41
      result = i*2;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    42
    }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    43
    return result;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    44
  }
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
  static int test2(int i, int limit) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    47
    int result = 0;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    48
    while (i-- != 0) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    49
      if (result <= limit)
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    50
        break;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    51
      result = i*2;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    52
    }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    53
    return result;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    54
  }
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
  static void test3(int i, int limit, int arr[]) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    57
    while (i++ != 0) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    58
      if (arr[i-1] >= limit)
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    59
        break;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    60
      arr[i] = i*2;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    61
    }
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
  static void test4(int i, int limit, int arr[]) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    65
    while (i-- != 0) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    66
      if (arr[arr.length + i + 1] <= limit)
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    67
        break;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    68
      arr[arr.length + i] = i*2;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    69
    }
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
  // Empty loop rolls through MAXINT if i > 0
10030
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
    73
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
    74
  static final int limit5 = Integer.MIN_VALUE + 10000;
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
    75
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    76
  static int test5(int i) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    77
    int result = 0;
10030
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
    78
    while (i++ != limit5) {
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    79
      result = i*2;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    80
    }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    81
    return result;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    82
  }
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
  // Empty loop rolls through MININT if i < 0
10030
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
    85
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
    86
  static final int limit6 = Integer.MAX_VALUE - 10000;
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
    87
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    88
  static int test6(int i) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    89
    int result = 0;
10030
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
    90
    while (i-- != limit6) {
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    91
      result = i*2;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    92
    }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    93
    return result;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    94
  }
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
  public static void main(String [] args) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    97
    boolean failed = false;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    98
    int[] arr = new int[8];
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
    99
    int[] ar3 = { 0, 0, 4, 6, 8, 10, 0, 0 };
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   100
    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
   101
    System.out.println("test1");
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   102
    for (int i = 0; i < 11000; i++) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   103
      int k = test1(1, 10);
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   104
      if (k != 10) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   105
        System.out.println("FAILED: " + k + " != 10");
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   106
        failed = true;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   107
        break;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   108
      }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   109
    }
10030
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
   110
    System.out.println("test2");
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   111
    for (int i = 0; i < 11000; i++) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   112
      int k = test2(-1, -10);
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   113
      if (k != -10) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   114
        System.out.println("FAILED: " + k + " != -10");
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   115
        failed = true;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   116
        break;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   117
      }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   118
    }
10030
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
   119
    System.out.println("test3");
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   120
    for (int i = 0; i < 11000; i++) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   121
      java.util.Arrays.fill(arr, 0);
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   122
      test3(1, 10, arr);
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   123
      if (!java.util.Arrays.equals(arr,ar3)) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   124
        System.out.println("FAILED: arr = { " + arr[0] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   125
                                              + arr[1] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   126
                                              + arr[2] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   127
                                              + arr[3] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   128
                                              + arr[4] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   129
                                              + arr[5] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   130
                                              + arr[6] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   131
                                              + arr[7] + " }");
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   132
        failed = true;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   133
        break;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   134
      }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   135
    }
10030
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
   136
    System.out.println("test4");
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   137
    for (int i = 0; i < 11000; i++) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   138
      java.util.Arrays.fill(arr, 0);
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   139
      test4(-1, -10, arr);
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   140
      if (!java.util.Arrays.equals(arr,ar4)) {
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   141
        System.out.println("FAILED: arr = { " + arr[0] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   142
                                              + arr[1] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   143
                                              + arr[2] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   144
                                              + arr[3] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   145
                                              + arr[4] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   146
                                              + arr[5] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   147
                                              + arr[6] + ", "
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   148
                                              + arr[7] + " }");
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   149
        failed = true;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   150
        break;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   151
      }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   152
    }
10030
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
   153
    System.out.println("test5");
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   154
    for (int i = 0; i < 11000; i++) {
10030
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
   155
      int k = test5(limit6);
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
   156
      if (k != limit5*2) {
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
   157
        System.out.println("FAILED: " + k + " != " + limit5*2);
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   158
        failed = true;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   159
        break;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   160
      }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   161
    }
10030
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
   162
    System.out.println("test6");
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   163
    for (int i = 0; i < 11000; i++) {
10030
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
   164
      int k = test6(limit5);
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
   165
      if (k != limit6*2) {
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
   166
        System.out.println("FAILED: " + k + " != " + limit6*2);
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   167
        failed = true;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   168
        break;
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   169
      }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   170
    }
10030
5f7e29996174 7067288: compiler regression test Test7052494 timeouts with client VM
kvn
parents: 10005
diff changeset
   171
    System.out.println("finish");
10005
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   172
    if (failed)
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   173
      System.exit(97);
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   174
  }
ce4ea81a1329 7052494: Eclipse test fails on JDK 7 b142
kvn
parents:
diff changeset
   175
}