comparison 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
comparison
equal deleted inserted replaced
1510:d6e880569997 1511:348346af6676
23 * 23 *
24 */ 24 */
25 25
26 #include "incls/_precompiled.incl" 26 #include "incls/_precompiled.incl"
27 #include "incls/_stack_zero.cpp.incl" 27 #include "incls/_stack_zero.cpp.incl"
28
29 int ZeroStack::suggest_size(Thread *thread) const {
30 assert(needs_setup(), "already set up");
31 return align_size_down(abi_stack_available(thread) / 2, wordSize);
32 }
28 33
29 void ZeroStack::handle_overflow(TRAPS) { 34 void ZeroStack::handle_overflow(TRAPS) {
30 JavaThread *thread = (JavaThread *) THREAD; 35 JavaThread *thread = (JavaThread *) THREAD;
31 36
32 // Set up the frame anchor if it isn't already 37 // Set up the frame anchor if it isn't already