Mercurial > hg > graal-compiler
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/opto/output.cpp Tue Mar 19 10:31:16 2013 +0100 +++ b/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); }