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