annotate agent/src/share/classes/sun/jvm/hotspot/code/ScopeDesc.java @ 931:72088be4b386

6873116: Modify reexecute implementation to use pcDesc to record the reexecute bit Summary: use PcDesc to keep record of the reexecute bit instead of using DebugInfoStreams Reviewed-by: kvn, never, twisti
author cfang
date Thu, 20 Aug 2009 12:42:57 -0700
parents 15bbd3f505c0
children 873ec3787992
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 /*
844
bd02caa94611 6862919: Update copyright year
xdono
parents: 818
diff changeset
2 * Copyright 2000-2009 Sun Microsystems, Inc. All Rights Reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 *
a61af66fc99e Initial load
duke
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 * published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 *
a61af66fc99e Initial load
duke
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 * accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 *
a61af66fc99e Initial load
duke
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 *
a61af66fc99e Initial load
duke
parents:
diff changeset
19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
a61af66fc99e Initial load
duke
parents:
diff changeset
20 * CA 95054 USA or visit www.sun.com if you need additional information or
a61af66fc99e Initial load
duke
parents:
diff changeset
21 * have any questions.
a61af66fc99e Initial load
duke
parents:
diff changeset
22 *
a61af66fc99e Initial load
duke
parents:
diff changeset
23 */
a61af66fc99e Initial load
duke
parents:
diff changeset
24
a61af66fc99e Initial load
duke
parents:
diff changeset
25 package sun.jvm.hotspot.code;
a61af66fc99e Initial load
duke
parents:
diff changeset
26
a61af66fc99e Initial load
duke
parents:
diff changeset
27 import java.io.*;
a61af66fc99e Initial load
duke
parents:
diff changeset
28 import java.util.*;
a61af66fc99e Initial load
duke
parents:
diff changeset
29
818
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
30 import sun.jvm.hotspot.debugger.*;
0
a61af66fc99e Initial load
duke
parents:
diff changeset
31 import sun.jvm.hotspot.oops.*;
a61af66fc99e Initial load
duke
parents:
diff changeset
32 import sun.jvm.hotspot.runtime.*;
818
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
33 import sun.jvm.hotspot.utilities.*;
0
a61af66fc99e Initial load
duke
parents:
diff changeset
34
a61af66fc99e Initial load
duke
parents:
diff changeset
35 /** ScopeDescs contain the information that makes source-level
a61af66fc99e Initial load
duke
parents:
diff changeset
36 debugging of nmethods possible; each scopeDesc describes a method
a61af66fc99e Initial load
duke
parents:
diff changeset
37 activation */
a61af66fc99e Initial load
duke
parents:
diff changeset
38
a61af66fc99e Initial load
duke
parents:
diff changeset
39 public class ScopeDesc {
a61af66fc99e Initial load
duke
parents:
diff changeset
40 /** NMethod information */
a61af66fc99e Initial load
duke
parents:
diff changeset
41 private NMethod code;
a61af66fc99e Initial load
duke
parents:
diff changeset
42 private Method method;
a61af66fc99e Initial load
duke
parents:
diff changeset
43 private int bci;
900
9987d9d5eb0e 6833129: specjvm98 fails with NullPointerException in the compiler with -XX:DeoptimizeALot
cfang
parents: 818
diff changeset
44 private boolean reexecute;
0
a61af66fc99e Initial load
duke
parents:
diff changeset
45 /** Decoding offsets */
a61af66fc99e Initial load
duke
parents:
diff changeset
46 private int decodeOffset;
a61af66fc99e Initial load
duke
parents:
diff changeset
47 private int senderDecodeOffset;
a61af66fc99e Initial load
duke
parents:
diff changeset
48 private int localsDecodeOffset;
a61af66fc99e Initial load
duke
parents:
diff changeset
49 private int expressionsDecodeOffset;
a61af66fc99e Initial load
duke
parents:
diff changeset
50 private int monitorsDecodeOffset;
818
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
51 /** Scalar replaced bjects pool */
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
52 private List objects; // ArrayList<ScopeValue>
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
53
0
a61af66fc99e Initial load
duke
parents:
diff changeset
54
931
72088be4b386 6873116: Modify reexecute implementation to use pcDesc to record the reexecute bit
cfang
parents: 903
diff changeset
55 public ScopeDesc(NMethod code, int decodeOffset, boolean reexecute) {
0
a61af66fc99e Initial load
duke
parents:
diff changeset
56 this.code = code;
a61af66fc99e Initial load
duke
parents:
diff changeset
57 this.decodeOffset = decodeOffset;
818
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
58 this.objects = decodeObjectValues(DebugInformationRecorder.SERIALIZED_NULL);
931
72088be4b386 6873116: Modify reexecute implementation to use pcDesc to record the reexecute bit
cfang
parents: 903
diff changeset
59 this.reexecute = reexecute;
818
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
60
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
61 // Decode header
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
62 DebugInfoReadStream stream = streamAt(decodeOffset);
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
63
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
64 senderDecodeOffset = stream.readInt();
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
65 method = (Method) VM.getVM().getObjectHeap().newOop(stream.readOopHandle());
931
72088be4b386 6873116: Modify reexecute implementation to use pcDesc to record the reexecute bit
cfang
parents: 903
diff changeset
66 bci = stream.readBCI();
818
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
67 // Decode offsets for body and sender
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
68 localsDecodeOffset = stream.readInt();
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
69 expressionsDecodeOffset = stream.readInt();
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
70 monitorsDecodeOffset = stream.readInt();
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
71 }
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
72
931
72088be4b386 6873116: Modify reexecute implementation to use pcDesc to record the reexecute bit
cfang
parents: 903
diff changeset
73 public ScopeDesc(NMethod code, int decodeOffset, int objectDecodeOffset, boolean reexecute) {
818
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
74 this.code = code;
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
75 this.decodeOffset = decodeOffset;
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
76 this.objects = decodeObjectValues(objectDecodeOffset);
931
72088be4b386 6873116: Modify reexecute implementation to use pcDesc to record the reexecute bit
cfang
parents: 903
diff changeset
77 this.reexecute = reexecute;
0
a61af66fc99e Initial load
duke
parents:
diff changeset
78
a61af66fc99e Initial load
duke
parents:
diff changeset
79 // Decode header
a61af66fc99e Initial load
duke
parents:
diff changeset
80 DebugInfoReadStream stream = streamAt(decodeOffset);
a61af66fc99e Initial load
duke
parents:
diff changeset
81
a61af66fc99e Initial load
duke
parents:
diff changeset
82 senderDecodeOffset = stream.readInt();
a61af66fc99e Initial load
duke
parents:
diff changeset
83 method = (Method) VM.getVM().getObjectHeap().newOop(stream.readOopHandle());
931
72088be4b386 6873116: Modify reexecute implementation to use pcDesc to record the reexecute bit
cfang
parents: 903
diff changeset
84 bci = stream.readBCI();
0
a61af66fc99e Initial load
duke
parents:
diff changeset
85 // Decode offsets for body and sender
a61af66fc99e Initial load
duke
parents:
diff changeset
86 localsDecodeOffset = stream.readInt();
a61af66fc99e Initial load
duke
parents:
diff changeset
87 expressionsDecodeOffset = stream.readInt();
a61af66fc99e Initial load
duke
parents:
diff changeset
88 monitorsDecodeOffset = stream.readInt();
a61af66fc99e Initial load
duke
parents:
diff changeset
89 }
a61af66fc99e Initial load
duke
parents:
diff changeset
90
931
72088be4b386 6873116: Modify reexecute implementation to use pcDesc to record the reexecute bit
cfang
parents: 903
diff changeset
91 public NMethod getNMethod() { return code; }
72088be4b386 6873116: Modify reexecute implementation to use pcDesc to record the reexecute bit
cfang
parents: 903
diff changeset
92 public Method getMethod() { return method; }
72088be4b386 6873116: Modify reexecute implementation to use pcDesc to record the reexecute bit
cfang
parents: 903
diff changeset
93 public int getBCI() { return bci; }
72088be4b386 6873116: Modify reexecute implementation to use pcDesc to record the reexecute bit
cfang
parents: 903
diff changeset
94 public boolean getReexecute() { return reexecute;}
0
a61af66fc99e Initial load
duke
parents:
diff changeset
95
a61af66fc99e Initial load
duke
parents:
diff changeset
96 /** Returns a List&lt;ScopeValue&gt; */
a61af66fc99e Initial load
duke
parents:
diff changeset
97 public List getLocals() {
a61af66fc99e Initial load
duke
parents:
diff changeset
98 return decodeScopeValues(localsDecodeOffset);
a61af66fc99e Initial load
duke
parents:
diff changeset
99 }
a61af66fc99e Initial load
duke
parents:
diff changeset
100
a61af66fc99e Initial load
duke
parents:
diff changeset
101 /** Returns a List&lt;ScopeValue&gt; */
a61af66fc99e Initial load
duke
parents:
diff changeset
102 public List getExpressions() {
a61af66fc99e Initial load
duke
parents:
diff changeset
103 return decodeScopeValues(expressionsDecodeOffset);
a61af66fc99e Initial load
duke
parents:
diff changeset
104 }
a61af66fc99e Initial load
duke
parents:
diff changeset
105
a61af66fc99e Initial load
duke
parents:
diff changeset
106 /** Returns a List&lt;MonitorValue&gt; */
a61af66fc99e Initial load
duke
parents:
diff changeset
107 public List getMonitors() {
a61af66fc99e Initial load
duke
parents:
diff changeset
108 return decodeMonitorValues(monitorsDecodeOffset);
a61af66fc99e Initial load
duke
parents:
diff changeset
109 }
a61af66fc99e Initial load
duke
parents:
diff changeset
110
818
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
111 /** Returns a List&lt;MonitorValue&gt; */
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
112 public List getObjects() {
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
113 return objects;
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
114 }
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
115
0
a61af66fc99e Initial load
duke
parents:
diff changeset
116 /** Stack walking. Returns null if this is the outermost scope. */
a61af66fc99e Initial load
duke
parents:
diff changeset
117 public ScopeDesc sender() {
a61af66fc99e Initial load
duke
parents:
diff changeset
118 if (isTop()) {
a61af66fc99e Initial load
duke
parents:
diff changeset
119 return null;
a61af66fc99e Initial load
duke
parents:
diff changeset
120 }
a61af66fc99e Initial load
duke
parents:
diff changeset
121
931
72088be4b386 6873116: Modify reexecute implementation to use pcDesc to record the reexecute bit
cfang
parents: 903
diff changeset
122 return new ScopeDesc(code, senderDecodeOffset, false);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
123 }
a61af66fc99e Initial load
duke
parents:
diff changeset
124
a61af66fc99e Initial load
duke
parents:
diff changeset
125 /** Returns where the scope was decoded */
a61af66fc99e Initial load
duke
parents:
diff changeset
126 public int getDecodeOffset() {
a61af66fc99e Initial load
duke
parents:
diff changeset
127 return decodeOffset;
a61af66fc99e Initial load
duke
parents:
diff changeset
128 }
a61af66fc99e Initial load
duke
parents:
diff changeset
129
a61af66fc99e Initial load
duke
parents:
diff changeset
130 /** Tells whether sender() returns null */
a61af66fc99e Initial load
duke
parents:
diff changeset
131 public boolean isTop() {
a61af66fc99e Initial load
duke
parents:
diff changeset
132 return (senderDecodeOffset == DebugInformationRecorder.SERIALIZED_NULL);
a61af66fc99e Initial load
duke
parents:
diff changeset
133 }
a61af66fc99e Initial load
duke
parents:
diff changeset
134
a61af66fc99e Initial load
duke
parents:
diff changeset
135 public boolean equals(Object arg) {
a61af66fc99e Initial load
duke
parents:
diff changeset
136 if (arg == null) {
a61af66fc99e Initial load
duke
parents:
diff changeset
137 return false;
a61af66fc99e Initial load
duke
parents:
diff changeset
138 }
a61af66fc99e Initial load
duke
parents:
diff changeset
139
a61af66fc99e Initial load
duke
parents:
diff changeset
140 if (!(arg instanceof ScopeDesc)) {
a61af66fc99e Initial load
duke
parents:
diff changeset
141 return false;
a61af66fc99e Initial load
duke
parents:
diff changeset
142 }
a61af66fc99e Initial load
duke
parents:
diff changeset
143
a61af66fc99e Initial load
duke
parents:
diff changeset
144 ScopeDesc sd = (ScopeDesc) arg;
a61af66fc99e Initial load
duke
parents:
diff changeset
145
a61af66fc99e Initial load
duke
parents:
diff changeset
146 return (sd.method.equals(method) && (sd.bci == bci));
a61af66fc99e Initial load
duke
parents:
diff changeset
147 }
a61af66fc99e Initial load
duke
parents:
diff changeset
148
a61af66fc99e Initial load
duke
parents:
diff changeset
149 public void printValue() {
a61af66fc99e Initial load
duke
parents:
diff changeset
150 printValueOn(System.out);
a61af66fc99e Initial load
duke
parents:
diff changeset
151 }
a61af66fc99e Initial load
duke
parents:
diff changeset
152
a61af66fc99e Initial load
duke
parents:
diff changeset
153 public void printValueOn(PrintStream tty) {
a61af66fc99e Initial load
duke
parents:
diff changeset
154 tty.print("ScopeDesc for ");
a61af66fc99e Initial load
duke
parents:
diff changeset
155 method.printValueOn(tty);
931
72088be4b386 6873116: Modify reexecute implementation to use pcDesc to record the reexecute bit
cfang
parents: 903
diff changeset
156 tty.print(" @bci " + bci);
72088be4b386 6873116: Modify reexecute implementation to use pcDesc to record the reexecute bit
cfang
parents: 903
diff changeset
157 tty.println(" reexecute=" + reexecute);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
158 }
a61af66fc99e Initial load
duke
parents:
diff changeset
159
a61af66fc99e Initial load
duke
parents:
diff changeset
160 // FIXME: add more accessors
a61af66fc99e Initial load
duke
parents:
diff changeset
161
a61af66fc99e Initial load
duke
parents:
diff changeset
162 //--------------------------------------------------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
163 // Internals only below this point
a61af66fc99e Initial load
duke
parents:
diff changeset
164 //
a61af66fc99e Initial load
duke
parents:
diff changeset
165 private DebugInfoReadStream streamAt(int decodeOffset) {
818
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
166 return new DebugInfoReadStream(code, decodeOffset, objects);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
167 }
a61af66fc99e Initial load
duke
parents:
diff changeset
168
a61af66fc99e Initial load
duke
parents:
diff changeset
169 /** Returns a List&lt;ScopeValue&gt; or null if no values were present */
a61af66fc99e Initial load
duke
parents:
diff changeset
170 private List decodeScopeValues(int decodeOffset) {
a61af66fc99e Initial load
duke
parents:
diff changeset
171 if (decodeOffset == DebugInformationRecorder.SERIALIZED_NULL) {
a61af66fc99e Initial load
duke
parents:
diff changeset
172 return null;
a61af66fc99e Initial load
duke
parents:
diff changeset
173 }
a61af66fc99e Initial load
duke
parents:
diff changeset
174 DebugInfoReadStream stream = streamAt(decodeOffset);
a61af66fc99e Initial load
duke
parents:
diff changeset
175 int length = stream.readInt();
a61af66fc99e Initial load
duke
parents:
diff changeset
176 List res = new ArrayList(length);
a61af66fc99e Initial load
duke
parents:
diff changeset
177 for (int i = 0; i < length; i++) {
a61af66fc99e Initial load
duke
parents:
diff changeset
178 res.add(ScopeValue.readFrom(stream));
a61af66fc99e Initial load
duke
parents:
diff changeset
179 }
a61af66fc99e Initial load
duke
parents:
diff changeset
180 return res;
a61af66fc99e Initial load
duke
parents:
diff changeset
181 }
a61af66fc99e Initial load
duke
parents:
diff changeset
182
a61af66fc99e Initial load
duke
parents:
diff changeset
183 /** Returns a List&lt;MonitorValue&gt; or null if no values were present */
a61af66fc99e Initial load
duke
parents:
diff changeset
184 private List decodeMonitorValues(int decodeOffset) {
a61af66fc99e Initial load
duke
parents:
diff changeset
185 if (decodeOffset == DebugInformationRecorder.SERIALIZED_NULL) {
a61af66fc99e Initial load
duke
parents:
diff changeset
186 return null;
a61af66fc99e Initial load
duke
parents:
diff changeset
187 }
a61af66fc99e Initial load
duke
parents:
diff changeset
188 DebugInfoReadStream stream = streamAt(decodeOffset);
a61af66fc99e Initial load
duke
parents:
diff changeset
189 int length = stream.readInt();
a61af66fc99e Initial load
duke
parents:
diff changeset
190 List res = new ArrayList(length);
a61af66fc99e Initial load
duke
parents:
diff changeset
191 for (int i = 0; i < length; i++) {
a61af66fc99e Initial load
duke
parents:
diff changeset
192 res.add(new MonitorValue(stream));
a61af66fc99e Initial load
duke
parents:
diff changeset
193 }
a61af66fc99e Initial load
duke
parents:
diff changeset
194 return res;
a61af66fc99e Initial load
duke
parents:
diff changeset
195 }
818
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
196
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
197 /** Returns a List&lt;ObjectValue&gt; or null if no values were present */
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
198 private List decodeObjectValues(int decodeOffset) {
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
199 if (decodeOffset == DebugInformationRecorder.SERIALIZED_NULL) {
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
200 return null;
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
201 }
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
202 List res = new ArrayList();
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
203 DebugInfoReadStream stream = new DebugInfoReadStream(code, decodeOffset, res);
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
204 int length = stream.readInt();
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
205 for (int i = 0; i < length; i++) {
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
206 // Objects values are pushed to 'res' array during read so that
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
207 // object's fields could reference it (OBJECT_ID_CODE).
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
208 ScopeValue.readFrom(stream);
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
209 // res.add(ScopeValue.readFrom(stream));
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
210 }
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
211 Assert.that(res.size() == length, "inconsistent debug information");
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
212 return res;
b109e761e927 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 0
diff changeset
213 }
0
a61af66fc99e Initial load
duke
parents:
diff changeset
214 }