# HG changeset patch # User morris # Date 1370372814 25200 # Node ID 49ac5c39b28ff8df31c51a82f9f91f96b50218be # Parent ec32f692e27bfd26951b33861d5c13f6312d869e 8010724: [parfait] Null pointer dereference in hotspot/src/share/vm/c1/c1_LIRGenerator.cpp Summary: added guarantee() Reviewed-by: kvn diff -r ec32f692e27b -r 49ac5c39b28f hotspot/src/share/vm/c1/c1_LIRGenerator.cpp --- a/hotspot/src/share/vm/c1/c1_LIRGenerator.cpp Mon Jun 03 14:02:05 2013 -0700 +++ b/hotspot/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