Mercurial > hg > truffle
diff src/share/vm/runtime/frame.cpp @ 11146:e619a2766bcc
8016131: nsk/sysdict/vm/stress/chain tests crash the VM in 'entry_frame_is_first()'
Reviewed-by: jrose, kvn, mgronlun
author | rbackman |
---|---|
date | Wed, 12 Jun 2013 11:17:39 +0200 |
parents | e0c9a1d29eb4 |
children | 6b0fd0964b87 4b2838704fd5 94c202aa2646 |
line wrap: on
line diff
--- a/src/share/vm/runtime/frame.cpp Tue Jul 16 07:33:29 2013 +0200 +++ b/src/share/vm/runtime/frame.cpp Wed Jun 12 11:17:39 2013 +0200 @@ -221,9 +221,20 @@ bool frame::entry_frame_is_first() const { - return entry_frame_call_wrapper()->anchor()->last_Java_sp() == NULL; + return entry_frame_call_wrapper()->is_first_frame(); } +JavaCallWrapper* frame::entry_frame_call_wrapper_if_safe(JavaThread* thread) const { + JavaCallWrapper** jcw = entry_frame_call_wrapper_addr(); + address addr = (address) jcw; + + // addr must be within the usable part of the stack + if (thread->is_in_usable_stack(addr)) { + return *jcw; + } + + return NULL; +} bool frame::should_be_deoptimized() const { if (_deopt_state == is_deoptimized ||