src/cpu/zero/vm/stack_zero.inline.hpp

Print this page
@  rev 7209 : Zero+PPC64: Stack overflow when running Maven
|

*** 45,56 **** } // This method returns the amount of ABI stack available for us // to use under normal circumstances. Note that the returned // value can be negative. ! inline int ZeroStack::abi_stack_available(Thread *thread) const { ! int stack_used = thread->stack_base() - (address) &stack_used; ! int stack_free = thread->stack_size() - stack_used; ! return stack_free - shadow_pages_size(); } #endif // CPU_ZERO_VM_STACK_ZERO_INLINE_HPP --- 45,57 ---- } // This method returns the amount of ABI stack available for us // to use under normal circumstances. Note that the returned // value can be negative. ! inline ssize_t ZeroStack::abi_stack_available(Thread *thread) const { ! ssize_t stack_used = thread->stack_base() - (address) &stack_used ! + (StackYellowPages+StackRedPages+StackShadowPages) * os::vm_page_size(); ! ssize_t stack_free = thread->stack_size() - stack_used; ! return stack_free; } #endif // CPU_ZERO_VM_STACK_ZERO_INLINE_HPP