comparison src/share/vm/opto/node.cpp @ 20671:9e69e8d1c900

8058148: MaxNodeLimit and LiveNodeCountInliningCutoff Reviewed-by: kvn, roland
author vlivanov
date Mon, 24 Nov 2014 07:29:03 -0800
parents 91cb3b8aac2b
children 7848fc12602b c1091733abe6
comparison
equal deleted inserted replaced
20670:6a528388c7da 20671:9e69e8d1c900
67 new_debug_idx += bump; 67 new_debug_idx += bump;
68 } 68 }
69 Compile::set_debug_idx(new_debug_idx); 69 Compile::set_debug_idx(new_debug_idx);
70 set_debug_idx( new_debug_idx ); 70 set_debug_idx( new_debug_idx );
71 assert(Compile::current()->unique() < (INT_MAX - 1), "Node limit exceeded INT_MAX"); 71 assert(Compile::current()->unique() < (INT_MAX - 1), "Node limit exceeded INT_MAX");
72 assert(Compile::current()->live_nodes() < (uint)MaxNodeLimit, "Live Node limit exceeded limit"); 72 assert(Compile::current()->live_nodes() < Compile::current()->max_node_limit(), "Live Node limit exceeded limit");
73 if (BreakAtNode != 0 && (_debug_idx == BreakAtNode || (int)_idx == BreakAtNode)) { 73 if (BreakAtNode != 0 && (_debug_idx == BreakAtNode || (int)_idx == BreakAtNode)) {
74 tty->print_cr("BreakAtNode: _idx=%d _debug_idx=%d", _idx, _debug_idx); 74 tty->print_cr("BreakAtNode: _idx=%d _debug_idx=%d", _idx, _debug_idx);
75 BREAKPOINT; 75 BREAKPOINT;
76 } 76 }
77 #if OPTO_DU_ITERATOR_ASSERT 77 #if OPTO_DU_ITERATOR_ASSERT
324 //------------------------------Node------------------------------------------- 324 //------------------------------Node-------------------------------------------
325 // Create a Node, with a given number of required edges. 325 // Create a Node, with a given number of required edges.
326 Node::Node(uint req) 326 Node::Node(uint req)
327 : _idx(IDX_INIT(req)) 327 : _idx(IDX_INIT(req))
328 { 328 {
329 assert( req < (uint)(MaxNodeLimit - NodeLimitFudgeFactor), "Input limit exceeded" ); 329 assert( req < Compile::current()->max_node_limit() - NodeLimitFudgeFactor, "Input limit exceeded" );
330 debug_only( verify_construction() ); 330 debug_only( verify_construction() );
331 NOT_PRODUCT(nodes_created++); 331 NOT_PRODUCT(nodes_created++);
332 if (req == 0) { 332 if (req == 0) {
333 assert( _in == (Node**)this, "Must not pass arg count to 'new'" ); 333 assert( _in == (Node**)this, "Must not pass arg count to 'new'" );
334 _in = NULL; 334 _in = NULL;