Skip to content
Permalink
Browse files
Fix crash due to bad oop
  • Loading branch information
pron committed Mar 25, 2021
1 parent 72eb276 commit 380ff20b94e5ba09b866d1857fb20914e7befce6
Showing 1 changed file with 1 addition and 1 deletion.
@@ -250,7 +250,7 @@ template<typename FKind> frame Freeze<ConfigT>::new_hframe(frame& f, frame& call
assert (sp <= fp && fp <= caller.unextended_sp(), "");
caller.set_sp(fp + frame::sender_sp_offset);
} else {
fp = f.fp();
fp = *(intptr_t**)(f.sp() - frame::sender_sp_offset); // we need to re-read fp because it may be an oop and we might have had a safepoint in finalize_freeze, after constructing f.
int fsize = FKind::size(f);
sp = caller.unextended_sp() - fsize;
if (caller.is_interpreted_frame()) {

0 comments on commit 380ff20

Please sign in to comment.