Mercurial > hg > truffle
diff src/cpu/x86/vm/frame_x86.cpp @ 793:eacd97c88873
6848466: frame::frame_size() assertion failure with -XX:+DebugDeoptimization
Summary: add a RegisterMap* argument to frame::frame_size() to correctly compute the sender frame
Reviewed-by: never
author | cfang |
---|---|
date | Fri, 05 Jun 2009 10:25:39 -0700 |
parents | dc7f315e41f7 |
children | bd02caa94611 |
line wrap: on
line diff
--- a/src/cpu/x86/vm/frame_x86.cpp Wed Jun 03 18:15:25 2009 -0700 +++ b/src/cpu/x86/vm/frame_x86.cpp Fri Jun 05 10:25:39 2009 -0700 @@ -237,9 +237,8 @@ return Interpreter::contains(pc()); } -int frame::frame_size() const { - RegisterMap map(JavaThread::current(), false); - frame sender = this->sender(&map); +int frame::frame_size(RegisterMap* map) const { + frame sender = this->sender(map); return sender.sp() - sp(); }