8009172: [parfait] Null pointer deference in hotspot/src/share/vm/opto/output.cpp
authormorris
Tue, 19 Mar 2013 07:20:15 -0700
changeset 16371 5a0b66604a5b
parent 16370 4b75aa6388ab
child 16372 20c2c4dc8b77
8009172: [parfait] Null pointer deference in hotspot/src/share/vm/opto/output.cpp Summary: add guarantee() to DoScheduling() Reviewed-by: twisti, kvn
hotspot/src/share/vm/opto/output.cpp
--- a/hotspot/src/share/vm/opto/output.cpp	Tue Mar 19 10:31:16 2013 +0100
+++ b/hotspot/src/share/vm/opto/output.cpp	Tue Mar 19 07:20:15 2013 -0700
@@ -2518,6 +2518,7 @@
     // Schedule the remaining instructions in the block
     while ( _available.size() > 0 ) {
       Node *n = ChooseNodeToBundle();
+      guarantee(n != NULL, "no nodes available");
       AddNodeToBundle(n,bb);
     }