6950178: Zero stack improvements

Moves the logic for determining the size of the Zero stack into the ZeroStack class.

Reviewed-by: twisti
This commit is contained in:
Gary Benson 2010-05-06 02:09:18 -07:00 committed by Christian Thalinger
parent 070ea7c310
commit 4d6c5d6fef
5 changed files with 24 additions and 10 deletions

View file

@ -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;