提交 31a10fc2 编写于 作者: M morris

8010724: [parfait] Null pointer dereference in hotspot/src/share/vm/c1/c1_LIRGenerator.cpp

Summary: added guarantee()
Reviewed-by: kvn
上级 b347e8ca
...@@ -2232,6 +2232,7 @@ void LIRGenerator::do_UnsafeGetObject(UnsafeGetObject* x) { ...@@ -2232,6 +2232,7 @@ void LIRGenerator::do_UnsafeGetObject(UnsafeGetObject* x) {
// We still need to continue with the checks. // We still need to continue with the checks.
if (src.is_constant()) { if (src.is_constant()) {
ciObject* src_con = src.get_jobject_constant(); ciObject* src_con = src.get_jobject_constant();
guarantee(src_con != NULL, "no source constant");
if (src_con->is_null_object()) { if (src_con->is_null_object()) {
// The constant src object is null - We can skip // The constant src object is null - We can skip
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册