comparison src/cpu/sparc/vm/interp_masm_sparc.cpp @ 10393:603ca7e51354

8010460: Interpreter on some platforms loads ConstMethod::_max_stack and misses extra stack slots for JSR 292 Summary: ConstMethod::max_stack() doesn't account for JSR 292 appendix. Reviewed-by: kvn
author roland
date Wed, 24 Apr 2013 11:49:38 +0200
parents 1ea6a35dcbe5
children 63e44cdabb91 46c544b8fbfc
comparison
equal deleted inserted replaced
10392:c07dd9be16e8 10393:603ca7e51354
519 delayed()->nop(); 519 delayed()->nop();
520 520
521 // Compute max expression stack+register save area 521 // Compute max expression stack+register save area
522 ld_ptr(Lmethod, in_bytes(Method::const_offset()), Gframe_size); 522 ld_ptr(Lmethod, in_bytes(Method::const_offset()), Gframe_size);
523 lduh(Gframe_size, in_bytes(ConstMethod::max_stack_offset()), Gframe_size); // Load max stack. 523 lduh(Gframe_size, in_bytes(ConstMethod::max_stack_offset()), Gframe_size); // Load max stack.
524 add( Gframe_size, frame::memory_parameter_word_sp_offset, Gframe_size ); 524 add(Gframe_size, frame::memory_parameter_word_sp_offset+Method::extra_stack_entries(), Gframe_size );
525 525
526 // 526 //
527 // now set up a stack frame with the size computed above 527 // now set up a stack frame with the size computed above
528 // 528 //
529 //round_to( Gframe_size, WordsPerLong ); // -- moved down to the "and" below 529 //round_to( Gframe_size, WordsPerLong ); // -- moved down to the "and" below