8009172: [parfait] Null pointer deference in hotspot/src/share/vm/opto/output.cpp

Add guarantee() to DoScheduling()

Reviewed-by: twisti, kvn
This commit is contained in:
Morris Meyer 2013-03-19 07:20:15 -07:00
parent e6e67652d9
commit 887dd2634c

View File

@ -2518,6 +2518,7 @@ void Scheduling::DoScheduling() {
// Schedule the remaining instructions in the block
while ( _available.size() > 0 ) {
Node *n = ChooseNodeToBundle();
guarantee(n != NULL, "no nodes available");
AddNodeToBundle(n,bb);
}