comparison src/share/vm/opto/output.cpp @ 8770:f15df3af32c5

8009172: [parfait] Null pointer deference in hotspot/src/share/vm/opto/output.cpp Summary: add guarantee() to DoScheduling() Reviewed-by: twisti, kvn
author morris
date Tue, 19 Mar 2013 07:20:15 -0700
parents 2aff40cb4703
children 0a8c2ea3902d
comparison
equal deleted inserted replaced
8769:be4d5c6c1f79 8770:f15df3af32c5
2516 ComputeUseCount(bb); 2516 ComputeUseCount(bb);
2517 2517
2518 // Schedule the remaining instructions in the block 2518 // Schedule the remaining instructions in the block
2519 while ( _available.size() > 0 ) { 2519 while ( _available.size() > 0 ) {
2520 Node *n = ChooseNodeToBundle(); 2520 Node *n = ChooseNodeToBundle();
2521 guarantee(n != NULL, "no nodes available");
2521 AddNodeToBundle(n,bb); 2522 AddNodeToBundle(n,bb);
2522 } 2523 }
2523 2524
2524 assert( _scheduled.size() == _bb_end - _bb_start, "wrong number of instructions" ); 2525 assert( _scheduled.size() == _bb_end - _bb_start, "wrong number of instructions" );
2525 #ifdef ASSERT 2526 #ifdef ASSERT