hotspot/src/share/vm/opto/graphKit.cpp
changeset 11431 5ca3a19e559a
parent 11430 718fc06da49a
child 11724 1500e51fdcbf
--- a/hotspot/src/share/vm/opto/graphKit.cpp	Wed Dec 07 11:35:03 2011 +0100
+++ b/hotspot/src/share/vm/opto/graphKit.cpp	Tue Dec 20 16:56:50 2011 +0100
@@ -3337,6 +3337,19 @@
   return NULL;
 }
 
+// Trace Allocate -> Proj[Parm] -> MemBarStoreStore
+MemBarStoreStoreNode* AllocateNode::storestore() {
+  ProjNode* rawoop = proj_out(AllocateNode::RawAddress);
+  if (rawoop == NULL)  return NULL;
+  for (DUIterator_Fast imax, i = rawoop->fast_outs(imax); i < imax; i++) {
+    Node* storestore = rawoop->fast_out(i);
+    if (storestore->is_MemBarStoreStore()) {
+      return storestore->as_MemBarStoreStore();
+    }
+  }
+  return NULL;
+}
+
 //----------------------------- loop predicates ---------------------------
 
 //------------------------------add_predicate_impl----------------------------