1.1 --- a/src/share/vm/opto/node.cpp Tue Nov 11 04:46:13 2014 -0800 1.2 +++ b/src/share/vm/opto/node.cpp Mon Nov 24 07:29:03 2014 -0800 1.3 @@ -69,7 +69,7 @@ 1.4 Compile::set_debug_idx(new_debug_idx); 1.5 set_debug_idx( new_debug_idx ); 1.6 assert(Compile::current()->unique() < (INT_MAX - 1), "Node limit exceeded INT_MAX"); 1.7 - assert(Compile::current()->live_nodes() < (uint)MaxNodeLimit, "Live Node limit exceeded limit"); 1.8 + assert(Compile::current()->live_nodes() < Compile::current()->max_node_limit(), "Live Node limit exceeded limit"); 1.9 if (BreakAtNode != 0 && (_debug_idx == BreakAtNode || (int)_idx == BreakAtNode)) { 1.10 tty->print_cr("BreakAtNode: _idx=%d _debug_idx=%d", _idx, _debug_idx); 1.11 BREAKPOINT; 1.12 @@ -326,7 +326,7 @@ 1.13 Node::Node(uint req) 1.14 : _idx(IDX_INIT(req)) 1.15 { 1.16 - assert( req < (uint)(MaxNodeLimit - NodeLimitFudgeFactor), "Input limit exceeded" ); 1.17 + assert( req < Compile::current()->max_node_limit() - NodeLimitFudgeFactor, "Input limit exceeded" ); 1.18 debug_only( verify_construction() ); 1.19 NOT_PRODUCT(nodes_created++); 1.20 if (req == 0) {