Skip to content

Commit 9a0cf58

Browse files
committed
8255615: Zero: demote ZeroStack::abi_stack_available guarantee to assert
Reviewed-by: sgehwolf
1 parent 904561e commit 9a0cf58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ inline void ZeroStack::overflow_check(int required_words, TRAPS) {
4747
// to use under normal circumstances. Note that the returned
4848
// value can be negative.
4949
inline int ZeroStack::abi_stack_available(Thread *thread) const {
50-
guarantee(Thread::current() == thread, "should run in the same thread");
50+
assert(Thread::current() == thread, "should run in the same thread");
5151
int stack_used = thread->stack_base() - (address) &stack_used
5252
+ (StackOverflow::stack_guard_zone_size() + StackOverflow::stack_shadow_zone_size());
5353
int stack_free = thread->stack_size() - stack_used;

0 commit comments

Comments
 (0)