comparison src/share/vm/c1/c1_LIRGenerator.cpp @ 10397: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 2a9d97b57920
children 836a62f43af9 b800986664f4
comparison
equal deleted inserted replaced
10396:770e91e578a6 10397:075ea888b039
2230 2230
2231 if (gen_pre_barrier) { 2231 if (gen_pre_barrier) {
2232 // We still need to continue with the checks. 2232 // We still need to continue with the checks.
2233 if (src.is_constant()) { 2233 if (src.is_constant()) {
2234 ciObject* src_con = src.get_jobject_constant(); 2234 ciObject* src_con = src.get_jobject_constant();
2235 guarantee(src_con != NULL, "no source constant");
2235 2236
2236 if (src_con->is_null_object()) { 2237 if (src_con->is_null_object()) {
2237 // The constant src object is null - We can skip 2238 // The constant src object is null - We can skip
2238 // generating the code stub. 2239 // generating the code stub.
2239 gen_pre_barrier = false; 2240 gen_pre_barrier = false;