8064815: Zero+PPC64: Stack overflow when running Maven

Reviewed-by: kvn, simonis
This commit is contained in:
Severin Gehwolf 2014-11-18 19:17:16 +01:00 committed by Volker Simonis
parent 8e5771854a
commit 8a5d63f3a2
2 changed files with 7 additions and 3 deletions

View file

@ -30,7 +30,9 @@
int ZeroStack::suggest_size(Thread *thread) const {
assert(needs_setup(), "already set up");
return align_size_down(abi_stack_available(thread) / 2, wordSize);
int abi_available = abi_stack_available(thread);
assert(abi_available >= 0, "available abi stack must be >= 0");
return align_size_down(abi_available / 2, wordSize);
}
void ZeroStack::handle_overflow(TRAPS) {