mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
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:
parent
070ea7c310
commit
4d6c5d6fef
5 changed files with 24 additions and 10 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue