changeset 16371:5a0b66604a5b

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 4b75aa6388ab
children 20c2c4dc8b77
files hotspot/src/share/vm/opto/output.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
     }