comparison src/cpu/sparc/vm/frame_sparc.inline.hpp @ 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 f0c2369fda5a
children 6b0fd0964b87 de6a9e811145
comparison
equal deleted inserted replaced
11145:39deebbc90b3 11146:e619a2766bcc
238 return (ConstantPoolCache**)sp_addr_at( LcpoolCache->sp_offset_in_saved_window()); 238 return (ConstantPoolCache**)sp_addr_at( LcpoolCache->sp_offset_in_saved_window());
239 } 239 }
240 #endif // CC_INTERP 240 #endif // CC_INTERP
241 241
242 242
243 inline JavaCallWrapper* frame::entry_frame_call_wrapper() const { 243 inline JavaCallWrapper** frame::entry_frame_call_wrapper_addr() const {
244 // note: adjust this code if the link argument in StubGenerator::call_stub() changes! 244 // note: adjust this code if the link argument in StubGenerator::call_stub() changes!
245 const Argument link = Argument(0, false); 245 const Argument link = Argument(0, false);
246 return (JavaCallWrapper*)sp()[link.as_in().as_register()->sp_offset_in_saved_window()]; 246 return (JavaCallWrapper**)&sp()[link.as_in().as_register()->sp_offset_in_saved_window()];
247 } 247 }
248 248
249 249
250 inline int frame::local_offset_for_compiler(int local_index, int nof_args, int max_nof_locals, int max_nof_monitors) { 250 inline int frame::local_offset_for_compiler(int local_index, int nof_args, int max_nof_locals, int max_nof_monitors) {
251 // always allocate non-argument locals 0..5 as if they were arguments: 251 // always allocate non-argument locals 0..5 as if they were arguments: