changeset 4894:075ea888b039

8010724: [parfait] Null pointer dereference in hotspot/src/share/vm/c1/c1_LIRGenerator.cpp Summary: added guarantee() Reviewed-by: kvn
author morris
date Tue, 04 Jun 2013 12:06:54 -0700
parents 770e91e578a6
children 2cb5d5f6d5e5
files src/share/vm/c1/c1_LIRGenerator.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/c1/c1_LIRGenerator.cpp	Mon Jun 03 14:02:05 2013 -0700
+++ b/src/share/vm/c1/c1_LIRGenerator.cpp	Tue Jun 04 12:06:54 2013 -0700
@@ -2232,6 +2232,7 @@
       // We still need to continue with the checks.
       if (src.is_constant()) {
         ciObject* src_con = src.get_jobject_constant();
+        guarantee(src_con != NULL, "no source constant");
 
         if (src_con->is_null_object()) {
           // The constant src object is null - We can skip