diff src/share/vm/code/scopeDesc.cpp @ 7932:d4e6c82cd6a1

Remove deferred write logic.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Tue, 05 Mar 2013 17:16:41 +0100
parents b6a8f2d23057
children 85bd81dba8fc
line wrap: on
line diff
--- a/src/share/vm/code/scopeDesc.cpp	Tue Mar 05 16:43:34 2013 +0100
+++ b/src/share/vm/code/scopeDesc.cpp	Tue Mar 05 17:16:41 2013 +0100
@@ -132,25 +132,6 @@
   return result;
 }
 
-#ifdef GRAAL
-
-GrowableArray<DeferredWriteValue*>* ScopeDesc::decode_deferred_writes(int decode_offset) {
-  if (decode_offset == DebugInformationRecorder::serialized_null) return NULL;
-  DebugInfoReadStream* stream  = stream_at(decode_offset);
-  int length = stream->read_int();
-  GrowableArray<DeferredWriteValue*>* result = new GrowableArray<DeferredWriteValue*> (length);
-  for (int index = 0; index < length; index++) {
-    result->push(new DeferredWriteValue(stream));
-  }
-  return result;
-}
-
-GrowableArray<DeferredWriteValue*>* ScopeDesc::deferred_writes() {
-  return decode_deferred_writes(_deferred_writes_decode_offset);
-}
-
-#endif // GRAAL
-
 DebugInfoReadStream* ScopeDesc::stream_at(int decode_offset) const {
   return new DebugInfoReadStream(_code, decode_offset, _objects);
 }
@@ -261,19 +242,6 @@
     }
   }
 #endif // COMPILER2 || GRAAL
-#ifdef GRAAL
-  // deferred writes
-  { GrowableArray<DeferredWriteValue*>* l = ((ScopeDesc*) this)->deferred_writes();
-    if (l != NULL) {
-      st->print_cr("   Deferred writes");
-      for (int index = 0; index < l->length(); index++) {
-        st->print("    - @%d: ", index);
-        l->at(index)->print_on(st);
-        st->cr();
-      }
-    }
-  }
-#endif
 }
 
 #endif