Mercurial > hg > graal-compiler
diff src/cpu/zero/vm/stack_zero.cpp @ 1511:348346af6676
6950178: Zero stack improvements
Summary: Moves the logic for determining the size of the Zero stack into the ZeroStack class.
Reviewed-by: twisti
Contributed-by: Gary Benson <gbenson@redhat.com>
author | twisti |
---|---|
date | Thu, 06 May 2010 02:09:18 -0700 |
parents | 0c5b3cf3c1f5 |
children | c18cbe5936b8 |
line wrap: on
line diff
--- a/src/cpu/zero/vm/stack_zero.cpp Wed May 05 05:57:21 2010 -0700 +++ b/src/cpu/zero/vm/stack_zero.cpp Thu May 06 02:09:18 2010 -0700 @@ -26,6 +26,11 @@ #include "incls/_precompiled.incl" #include "incls/_stack_zero.cpp.incl" +int ZeroStack::suggest_size(Thread *thread) const { + assert(needs_setup(), "already set up"); + return align_size_down(abi_stack_available(thread) / 2, wordSize); +} + void ZeroStack::handle_overflow(TRAPS) { JavaThread *thread = (JavaThread *) THREAD;