src/cpu/x86/vm/c1_MacroAssembler_x86.cpp

changeset 6723
0bf37f737702
parent 6198
55fb97c4c58d
child 6876
710a3c8b516e
child 7854
e8260b6328fb
     1.1 --- a/src/cpu/x86/vm/c1_MacroAssembler_x86.cpp	Mon Jun 09 15:42:31 2014 -0700
     1.2 +++ b/src/cpu/x86/vm/c1_MacroAssembler_x86.cpp	Tue Apr 01 09:36:49 2014 +0200
     1.3 @@ -349,13 +349,14 @@
     1.4  }
     1.5  
     1.6  
     1.7 -void C1_MacroAssembler::build_frame(int frame_size_in_bytes) {
     1.8 +void C1_MacroAssembler::build_frame(int frame_size_in_bytes, int bang_size_in_bytes) {
     1.9 +  assert(bang_size_in_bytes >= frame_size_in_bytes, "stack bang size incorrect");
    1.10    // Make sure there is enough stack space for this method's activation.
    1.11    // Note that we do this before doing an enter(). This matches the
    1.12    // ordering of C2's stack overflow check / rsp decrement and allows
    1.13    // the SharedRuntime stack overflow handling to be consistent
    1.14    // between the two compilers.
    1.15 -  generate_stack_overflow_check(frame_size_in_bytes);
    1.16 +  generate_stack_overflow_check(bang_size_in_bytes);
    1.17  
    1.18    push(rbp);
    1.19  #ifdef TIERED

mercurial