mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8184009: Missing null pointer check in InterpreterRuntime::update_mdp_for_ret()
Adds a missing null check (guarantee) found by Parfait. Reviewed-by: coleenp, shade
This commit is contained in:
parent
10d2df3f6d
commit
dabb4ab518
1 changed files with 1 additions and 0 deletions
|
@ -1033,6 +1033,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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue