src/cpu/x86/vm/sharedRuntime_x86_64.cpp

changeset 959
c9004fe53695
parent 955
52a431267315
child 1014
0fbdb4381b99
child 1040
98cb887364d3
child 1047
afa80fa86d22
     1.1 --- a/src/cpu/x86/vm/sharedRuntime_x86_64.cpp	Tue Jan 13 14:49:07 2009 -0800
     1.2 +++ b/src/cpu/x86/vm/sharedRuntime_x86_64.cpp	Tue Jan 13 17:39:03 2009 -0800
     1.3 @@ -39,6 +39,8 @@
     1.4  RuntimeStub*       SharedRuntime::_resolve_virtual_call_blob;
     1.5  RuntimeStub*       SharedRuntime::_resolve_static_call_blob;
     1.6  
     1.7 +const int StackAlignmentInSlots = StackAlignmentInBytes / VMRegImpl::stack_slot_size;
     1.8 +
     1.9  #define __ masm->
    1.10  
    1.11  class SimpleRuntimeFrame {
    1.12 @@ -1286,7 +1288,7 @@
    1.13  
    1.14    // Now compute actual number of stack words we need rounding to make
    1.15    // stack properly aligned.
    1.16 -  stack_slots = round_to(stack_slots, 4 * VMRegImpl::slots_per_word);
    1.17 +  stack_slots = round_to(stack_slots, StackAlignmentInSlots);
    1.18  
    1.19    int stack_size = stack_slots * VMRegImpl::stack_slot_size;
    1.20  

mercurial