hotspot/src/share/vm/code/scopeDesc.cpp
changeset 217 c646ef2f5d58
parent 1 489c9b5090e2
child 670 ddf3e9583f2f
--- a/hotspot/src/share/vm/code/scopeDesc.cpp	Tue Mar 11 11:04:40 2008 -0700
+++ b/hotspot/src/share/vm/code/scopeDesc.cpp	Tue Mar 11 11:25:13 2008 -0700
@@ -91,7 +91,9 @@
   DebugInfoReadStream* stream = new DebugInfoReadStream(_code, decode_offset, result);
   int length = stream->read_int();
   for (int index = 0; index < length; index++) {
-    result->push(ScopeValue::read_from(stream));
+    // Objects values are pushed to 'result' array during read so that
+    // object's fields could reference it (OBJECT_ID_CODE).
+    (void)ScopeValue::read_from(stream);
   }
   assert(result->length() == length, "inconsistent debug information");
   return result;