hotspot/test/compiler/6689060/Test.java
author apangin
Tue, 19 Aug 2008 06:02:07 -0700
changeset 996 7565d0510bb6
parent 993 ef1ed5e7d732
parent 961 7fb3b13d4205
child 1418 e8fcbe2c4203
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
     1
/*
961
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
     2
 * Copyright 2008 Sun Microsystems, Inc.  All Rights Reserved.
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
     4
 *
961
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
     7
 * published by the Free Software Foundation.
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
     8
 *
961
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
    13
 * accompanied this code).
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    14
 *
961
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    18
 *
961
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
    19
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
    20
 * CA 95054 USA or visit www.sun.com if you need additional information or
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
    21
 * have any questions.
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    22
 *
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    23
 */
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    24
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    25
/*
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    26
 * @test
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    27
 * @bug 6689060
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    28
 * @summary Escape Analysis does not work with Compressed Oops
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    29
 * @run main/othervm -Xbatch -XX:CompileCommand=exclude,Test.dummy -XX:+AggressiveOpts Test
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    30
 */
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    31
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    32
import java.lang.reflect.Array;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    33
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    34
class Point {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    35
  int x;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    36
  int y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    37
  Point next;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    38
  int ax[];
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    39
  int ay[];
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    40
  Point pax[];
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    41
  Point pay[];
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    42
  public Point getNext() {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    43
    return next;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    44
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    45
}
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    46
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    47
public class Test {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    48
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    49
  void dummy() {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    50
    // Empty method to verify correctness of DebugInfo.
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    51
    // Use -XX:CompileCommand=exclude,Test.dummy
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    52
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    53
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    54
  int ival(int i) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    55
    return i*2;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    56
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    57
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    58
  int test80(int y, int l, int i) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    59
    Point p = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    60
    p.ax = new int[2];
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    61
    p.ay = new int[2];
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    62
    int x = 3;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    63
    p.ax[0] = x;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    64
    p.ay[1] = 3 * x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    65
    dummy();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    66
    return p.ax[0] * p.ay[1];
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    67
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    68
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    69
  int test81(int y, int l, int i) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    70
    Point p = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    71
    p.ax = new int[2];
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    72
    p.ay = new int[2];
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    73
    int x = 3;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    74
    p.ax[0] = x;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    75
    p.ay[1] = 3 * x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    76
    dummy();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    77
    return p.ax[0] * p.ay[1];
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    78
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    79
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    80
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    81
  int test44(int y) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    82
    Point p1 = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    83
    p1.x = ival(3);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    84
    dummy();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    85
    p1.y = 3 * p1.x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    86
    return p1.y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    87
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    88
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    89
  int test43(int y) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    90
    Point p1 = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    91
    if ( (y & 1) == 1 ) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    92
      p1.x = ival(3);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    93
    } else {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    94
      p1.x = ival(5);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    95
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    96
    dummy();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    97
    p1.y = 3 * p1.x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    98
    return p1.y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    99
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   100
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   101
  int test42(int y) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   102
    Point p1 = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   103
    p1.x = 3;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   104
    for (int i = 0; i < y; i++) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   105
      if ( (i & 1) == 1 ) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   106
        p1.x += 4;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   107
      }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   108
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   109
    p1.y = 3 * y + p1.x;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   110
    return p1.y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   111
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   112
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   113
  int test40(int y) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   114
    Point p1 = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   115
    if ( (y & 1) == 1 ) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   116
      p1.x = 3;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   117
    } else {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   118
      p1.x = 5;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   119
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   120
    p1.y = 3 * p1.x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   121
    return p1.y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   122
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   123
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   124
  int test41(int y) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   125
    Point p1 = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   126
    if ( (y & 1) == 1 ) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   127
      p1.x += 4;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   128
    } else {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   129
      p1.x += 5;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   130
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   131
    p1.y = 3 * p1.x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   132
    return p1.y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   133
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   134
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   135
  Point test00(int y) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   136
    int x = 3;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   137
    Point p = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   138
    p.x = x;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   139
    p.y = 3 * x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   140
    return p;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   141
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   142
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   143
  Point test01(int y) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   144
    int x = 3;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   145
    Point p = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   146
    p.x = x;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   147
    p.y = 3 * x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   148
    dummy();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   149
    return p;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   150
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   151
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   152
  Point test02(int y) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   153
    int x = 3;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   154
    Point p1 = null;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   155
    for (int i = 0; i < y; i++) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   156
      Point p2 = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   157
      p2.x = x;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   158
      p2.y = 3 * y + x;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   159
      p2.next = p1;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   160
      p1 = p2;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   161
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   162
    return p1;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   163
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   164
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   165
  Point test03(int y) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   166
    int x = 3;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   167
    Point p1 = null;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   168
    for (int i = 0; i < y; i++) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   169
      Point p2 = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   170
      p2.x = x;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   171
      p2.y = 3 * y + x;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   172
      p2.next = p1;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   173
      p1 = p2;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   174
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   175
    dummy();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   176
    return p1;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   177
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   178
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   179
  Point test04(int y) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   180
    int x = 3;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   181
    Point p1 = null;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   182
    for (int i = 0; i < y; i++) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   183
      Point p2 = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   184
      p2.x = x;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   185
      p2.y = 3 * y + x;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   186
      p2.next = p1;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   187
      dummy();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   188
      p1 = p2;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   189
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   190
    return p1;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   191
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   192
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   193
  int test05(int y) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   194
    int x = 3;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   195
    Point p1 = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   196
    for (int i = 0; i < y; i++) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   197
      Point p2 = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   198
      p2.x = x;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   199
      p2.y = 3 * y + x;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   200
      p1.next = p2;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   201
      p1 = p2;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   202
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   203
    return p1.y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   204
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   205
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   206
  int test0(int y) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   207
    int x = 3;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   208
    Point p = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   209
    p.x = x;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   210
    p.y = 3 * x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   211
    dummy();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   212
    return p.x * p.y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   213
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   214
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   215
  int test1(int y) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   216
    Point p = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   217
    if ( (y & 1) == 1 ) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   218
      p = new Point(); // Kill previous
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   219
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   220
    int x = 3;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   221
    p.x = x;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   222
    p.y = 3 * x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   223
    dummy();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   224
    return p.x * p.y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   225
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   226
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   227
  int test2(int y) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   228
    Point p1 = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   229
    Point p2 = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   230
    p1.x = 3;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   231
    p2.x = 4;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   232
    p1.y = 3 * p2.x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   233
    p2.y = 3 * p1.x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   234
    dummy();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   235
    return p1.y * p2.y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   236
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   237
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   238
  int test3(int y, Point p1) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   239
    Point p2 = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   240
    p1.x = 3;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   241
    p2.x = 4;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   242
    p1.y = 3 * p2.x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   243
    p2.y = 3 * p1.x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   244
    dummy();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   245
    return p1.y * p2.y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   246
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   247
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   248
  int test4(int y) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   249
    Point p1 = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   250
    Point p2 = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   251
    if ( (y & 1) == 1 ) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   252
      p1.x = 3;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   253
      p2.x = 4;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   254
    } else {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   255
      p1.x = 5;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   256
      p2.x = 6;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   257
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   258
    p1.y = 3 * p2.x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   259
    p2.y = 3 * p1.x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   260
    dummy();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   261
    return p1.y * p2.y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   262
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   263
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   264
  int test5(int y, Point p1) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   265
    Point p2 = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   266
    if ( (y & 1) == 1 ) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   267
      p1.x = 3;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   268
      p2.x = 4;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   269
    } else {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   270
      p1.x = 5;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   271
      p2.x = 6;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   272
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   273
    p1.y = 3 * p2.x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   274
    p2.y = 3 * p1.x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   275
    dummy();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   276
    return p1.y * p2.y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   277
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   278
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   279
  int test6(int y) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   280
    Point p1 = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   281
    Point p2 = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   282
    p1.next = p2;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   283
    if ( (y & 1) == 1 ) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   284
      p1.x = 3;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   285
      p1.getNext().x = 4;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   286
    } else {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   287
      p1.x = 5;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   288
      p1.getNext().x = 6;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   289
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   290
    p1.y = 3 * p2.x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   291
    p2.y = 3 * p1.x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   292
    dummy();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   293
    return p1.y * p2.y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   294
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   295
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   296
  int test7(int y, Point p1) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   297
    Point p2 = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   298
    p1.next = p2;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   299
    if ( (y & 1) == 1 ) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   300
      p1.x = 3;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   301
      p1.getNext().x = 4;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   302
    } else {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   303
      p1.x = 5;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   304
      p1.getNext().x = 6;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   305
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   306
    p1.y = 3 * p2.x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   307
    p2.y = 3 * p1.x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   308
    dummy();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   309
    return p1.y * p2.y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   310
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   311
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   312
  int test8(int y, int l, int i) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   313
    Point p = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   314
    p.ax = new int[l];
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   315
    p.ay = new int[l];
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   316
    int x = 3;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   317
    p.ax[i] = x;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   318
    p.ay[i] = 3 * x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   319
    dummy();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   320
    return p.ax[i] * p.ay[i];
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   321
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   322
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   323
  int test9(int y, int l, int i) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   324
    Point p = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   325
    p.pax = new Point[l];
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   326
    p.pay = new Point[l];
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   327
    p.pax[i] = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   328
    p.pay[i] = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   329
    p.pax[i].x = 3;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   330
    p.pay[i].x = 4;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   331
    p.pax[i].y = 3 * p.pay[i].x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   332
    p.pay[i].y = 3 * p.pax[i].x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   333
    dummy();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   334
    return p.pax[i].y * p.pay[i].y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   335
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   336
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   337
  int test10(int y, int l, int i, Class cls) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   338
    Point p = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   339
    try {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   340
      p.pax = (Point[])Array.newInstance(cls, l);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   341
      p.pax[i] = (Point)cls.newInstance();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   342
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   343
    catch(java.lang.InstantiationException ex) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   344
      return 0;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   345
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   346
    catch(java.lang.IllegalAccessException ex) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   347
      return 0;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   348
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   349
    p.pax[i].x = 3;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   350
    p.pax[i].y = 3 * p.pax[i].x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   351
    dummy();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   352
    return p.pax[i].x * p.pax[i].y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   353
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   354
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   355
  int test11(int y) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   356
    Point p1 = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   357
    Point p2 = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   358
    p1.next = p2;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   359
    if ( (y & 1) == 1 ) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   360
      p1.x = 3;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   361
      p1.next.x = 4;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   362
    } else {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   363
      p1.x = 5;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   364
      p1.next.x = 6;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   365
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   366
    p1.y = 3 * p1.next.x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   367
    p1.next.y = 3 * p1.x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   368
    dummy();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   369
    return p1.y * p1.next.y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   370
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   371
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   372
  int test12(int y) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   373
    Point p1 = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   374
    p1.next = p1;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   375
    if ( (y & 1) == 1 ) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   376
      p1.x = 3;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   377
      p1.next.x = 4;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   378
    } else {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   379
      p1.x = 5;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   380
      p1.next.x = 6;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   381
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   382
    p1.y = 3 * p1.next.x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   383
    p1.next.y = 3 * p1.x + y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   384
    dummy();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   385
    return p1.y * p1.next.y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   386
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   387
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   388
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   389
  public static void main(String args[]) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   390
    Test tsr    = new Test();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   391
    Point p     = new Point();
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   392
    Point ptmp  = p;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   393
    Class cls   = Point.class;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   394
    int y = 0;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   395
    for (int i=0; i<10000; i++) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   396
      ptmp.next = tsr.test00(1);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   397
      ptmp.next = tsr.test01(1);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   398
      ptmp.next = tsr.test02(1);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   399
      ptmp.next = tsr.test03(1);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   400
      ptmp.next = tsr.test04(1);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   401
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   402
      y = tsr.test05(1);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   403
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   404
      y = tsr.test80(y, 1, 0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   405
      y = tsr.test81(y, 1, 0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   406
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   407
      y = tsr.test44(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   408
      y = tsr.test43(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   409
      y = tsr.test42(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   410
      y = tsr.test40(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   411
      y = tsr.test41(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   412
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   413
      y = tsr.test0(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   414
      y = tsr.test1(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   415
      y = tsr.test2(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   416
      y = tsr.test3(y, p);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   417
      y = tsr.test4(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   418
      y = tsr.test5(y, p);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   419
      y = tsr.test6(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   420
      y = tsr.test7(y, p);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   421
      y = tsr.test8(y, 1, 0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   422
      y = tsr.test9(y, 1, 0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   423
      y = tsr.test10(y, 1, 0, cls);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   424
      y = tsr.test11(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   425
      y = tsr.test12(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   426
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   427
    for (int i=0; i<10000; i++) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   428
      ptmp.next = tsr.test00(1);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   429
      ptmp.next = tsr.test01(1);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   430
      ptmp.next = tsr.test02(1);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   431
      ptmp.next = tsr.test03(1);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   432
      ptmp.next = tsr.test04(1);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   433
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   434
      y = tsr.test05(1);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   435
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   436
      y = tsr.test80(y, 1, 0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   437
      y = tsr.test81(y, 1, 0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   438
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   439
      y = tsr.test44(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   440
      y = tsr.test43(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   441
      y = tsr.test42(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   442
      y = tsr.test40(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   443
      y = tsr.test41(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   444
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   445
      y = tsr.test0(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   446
      y = tsr.test1(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   447
      y = tsr.test2(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   448
      y = tsr.test3(y, p);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   449
      y = tsr.test4(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   450
      y = tsr.test5(y, p);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   451
      y = tsr.test6(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   452
      y = tsr.test7(y, p);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   453
      y = tsr.test8(y, 1, 0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   454
      y = tsr.test9(y, 1, 0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   455
      y = tsr.test10(y, 1, 0, cls);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   456
      y = tsr.test11(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   457
      y = tsr.test12(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   458
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   459
    for (int i=0; i<10000; i++) {
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   460
      ptmp.next = tsr.test00(1);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   461
      ptmp.next = tsr.test01(1);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   462
      ptmp.next = tsr.test02(1);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   463
      ptmp.next = tsr.test03(1);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   464
      ptmp.next = tsr.test04(1);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   465
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   466
      y = tsr.test05(1);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   467
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   468
      y = tsr.test80(y, 1, 0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   469
      y = tsr.test81(y, 1, 0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   470
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   471
      y = tsr.test44(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   472
      y = tsr.test43(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   473
      y = tsr.test42(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   474
      y = tsr.test40(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   475
      y = tsr.test41(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   476
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   477
      y = tsr.test0(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   478
      y = tsr.test1(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   479
      y = tsr.test2(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   480
      y = tsr.test3(y, p);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   481
      y = tsr.test4(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   482
      y = tsr.test5(y, p);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   483
      y = tsr.test6(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   484
      y = tsr.test7(y, p);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   485
      y = tsr.test8(y, 1, 0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   486
      y = tsr.test9(y, 1, 0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   487
      y = tsr.test10(y, 1, 0, cls);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   488
      y = tsr.test11(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   489
      y = tsr.test12(y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   490
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   491
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   492
    int z = 0;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   493
    y = tsr.test80(0, 1, 0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   494
    z += y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   495
    System.out.println("After 'test80' y=" + y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   496
    y = tsr.test81(0, 1, 0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   497
    z += y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   498
    System.out.println("After 'test81' y=" + y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   499
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   500
    y = tsr.test44(0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   501
    z += y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   502
    System.out.println("After 'test44' y=" + y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   503
    y = tsr.test43(0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   504
    z += y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   505
    System.out.println("After 'test43' y=" + y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   506
    y = tsr.test42(0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   507
    z += y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   508
    System.out.println("After 'test42' y=" + y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   509
    y = tsr.test40(0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   510
    z += y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   511
    System.out.println("After 'test40' y=" + y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   512
    y = tsr.test41(0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   513
    z += y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   514
    System.out.println("After 'test41' y=" + y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   515
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   516
    ptmp.next = tsr.test00(1);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   517
    z += y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   518
    System.out.println("After 'test00' p.y=" + ptmp.next.y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   519
    ptmp.next = tsr.test01(1);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   520
    z += y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   521
    System.out.println("After 'test01' p.y=" + ptmp.next.y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   522
    ptmp.next = tsr.test02(1);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   523
    z += y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   524
    System.out.println("After 'test02' p.y=" + ptmp.next.y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   525
    ptmp.next = tsr.test03(1);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   526
    z += y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   527
    System.out.println("After 'test03' p.y=" + ptmp.next.y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   528
    ptmp.next = tsr.test04(1);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   529
    z += y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   530
    System.out.println("After 'test04' p.y=" + ptmp.next.y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   531
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   532
    y = tsr.test05(1);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   533
    z += y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   534
    System.out.println("After 'test05' y=" + y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   535
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   536
    y = tsr.test0(0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   537
    z += y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   538
    System.out.println("After 'test0' y=" + y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   539
    y = tsr.test1(0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   540
    z += y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   541
    System.out.println("After 'test1' y=" + y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   542
    y = tsr.test2(0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   543
    z += y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   544
    System.out.println("After 'test2' y=" + y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   545
    y = tsr.test3(0, new Point());
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   546
    z += y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   547
    System.out.println("After 'test3' y=" + y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   548
    y = tsr.test4(0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   549
    z += y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   550
    System.out.println("After 'test4' y=" + y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   551
    y = tsr.test5(0, new Point());
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   552
    z += y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   553
    System.out.println("After 'test5' y=" + y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   554
    y = tsr.test6(0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   555
    z += y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   556
    System.out.println("After 'test6' y=" + y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   557
    y = tsr.test7(0, new Point());
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   558
    z += y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   559
    System.out.println("After 'test7' y=" + y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   560
    y = tsr.test8(0, 1, 0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   561
    z += y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   562
    System.out.println("After 'test8' y=" + y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   563
    y = tsr.test9(0, 1, 0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   564
    z += y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   565
    System.out.println("After 'test9' y=" + y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   566
    y = tsr.test10(0, 1, 0, cls);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   567
    z += y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   568
    System.out.println("After 'test10' y=" + y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   569
    y = tsr.test11(0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   570
    z += y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   571
    System.out.println("After 'test11' y=" + y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   572
    y = tsr.test12(0);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   573
    z += y;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   574
    System.out.println("After 'test12' y=" + y);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   575
    System.out.println("Sum of y =" + z);
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   576
  }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   577
}