diff -r 069ab3f976d3 -r 1dc233a8c7fe src/share/vm/opto/graphKit.cpp --- a/src/share/vm/opto/graphKit.cpp Wed Dec 07 11:35:03 2011 +0100 +++ b/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----------------------------