提交 a33f557d 编写于 作者: T thartmann

8184009: Missing null pointer check in InterpreterRuntime::update_mdp_for_ret()

Summary: Adds a missing null check (guarantee) found by Parfait.
Reviewed-by: coleenp, shade
上级 5e59bf43
...@@ -979,6 +979,7 @@ IRT_ENTRY(void, InterpreterRuntime::update_mdp_for_ret(JavaThread* thread, int r ...@@ -979,6 +979,7 @@ IRT_ENTRY(void, InterpreterRuntime::update_mdp_for_ret(JavaThread* thread, int r
// ProfileData is essentially a wrapper around a derived oop, so we // ProfileData is essentially a wrapper around a derived oop, so we
// need to take the lock before making any ProfileData structures. // need to take the lock before making any ProfileData structures.
ProfileData* data = h_mdo->data_at(h_mdo->dp_to_di(fr.interpreter_frame_mdp())); ProfileData* data = h_mdo->data_at(h_mdo->dp_to_di(fr.interpreter_frame_mdp()));
guarantee(data != NULL, "profile data must be valid");
RetData* rdata = data->as_RetData(); RetData* rdata = data->as_RetData();
address new_mdp = rdata->fixup_ret(return_bci, h_mdo); address new_mdp = rdata->fixup_ret(return_bci, h_mdo);
fr.interpreter_frame_set_mdp(new_mdp); fr.interpreter_frame_set_mdp(new_mdp);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册