Mercurial > hg > openjdk > jdk9 > hotspot
changeset 12804:8f04d457168b jdk-9+175
Merge
author | vlivanov |
---|---|
date | Tue, 20 Jun 2017 13:44:43 +0000 |
parents | 516a043eb368 (diff) 16c9c159df90 (current diff) |
children | 76a497562014 |
files | |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/cpu/aarch64/vm/abstractInterpreter_aarch64.cpp Tue Jun 20 14:37:25 2017 +0300 +++ b/src/cpu/aarch64/vm/abstractInterpreter_aarch64.cpp Tue Jun 20 13:44:43 2017 +0000 @@ -109,9 +109,15 @@ // for the callee's params we only need to account for the extra // locals. int size = overhead + - (callee_locals - callee_params)*Interpreter::stackElementWords + + (callee_locals - callee_params) + monitors * frame::interpreter_frame_monitor_size() + - temps* Interpreter::stackElementWords + extra_args; + // On the top frame, at all times SP <= ESP, and SP is + // 16-aligned. We ensure this by adjusting SP on method + // entry and re-entry to allow room for the maximum size of + // the expression stack. When we call another method we bump + // SP so that no stack space is wasted. So, only on the top + // frame do we need to allow max_stack words. + (is_top_frame ? max_stack : temps + extra_args); // On AArch64 we always keep the stack pointer 16-aligned, so we // must round up here.