--- a/hotspot/src/share/vm/opto/block.cpp Wed Feb 25 14:36:27 2009 -0800
+++ b/hotspot/src/share/vm/opto/block.cpp Thu Feb 26 14:26:02 2009 -0800
@@ -909,6 +909,10 @@
!(n->jvms() != NULL && n->jvms()->is_monitor_use(k)) ) {
assert( b->find_node(def) < j, "uses must follow definitions" );
}
+ if( def->is_SafePointScalarObject() ) {
+ assert(_bbs[def->_idx] == b, "SafePointScalarObject Node should be at the same block as its SafePoint node");
+ assert(_bbs[def->_idx] == _bbs[def->in(0)->_idx], "SafePointScalarObject Node should be at the same block as its control edge");
+ }
}
}
}