Mercurial > hg > graal-jvmci-8
diff src/cpu/zero/vm/stack_zero.hpp @ 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.hpp Wed May 05 05:57:21 2010 -0700 +++ b/src/cpu/zero/vm/stack_zero.hpp Thu May 06 02:09:18 2010 -0700 @@ -42,6 +42,8 @@ return _base == NULL; } + int suggest_size(Thread *thread) const; + void setup(void *mem, size_t size) { assert(needs_setup(), "already set up"); assert(!(size & WordAlignmentMask), "unaligned"); @@ -67,6 +69,9 @@ _sp = new_sp; } + int total_words() const { + return _top - _base; + } int available_words() const { return _sp - _base; } @@ -89,6 +94,7 @@ int shadow_pages_size() const { return _shadow_pages_size; } + int abi_stack_available(Thread *thread) const; public: void overflow_check(int required_words, TRAPS);