Skip to content

Commit bf7671f

Browse files
committed
No need to recalc size
1 parent 5523a6a commit bf7671f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_fibers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ static bool zend_fiber_stack_allocate(zend_fiber_stack *stack, size_t size)
163163

164164
#ifdef VALGRIND_STACK_REGISTER
165165
uintptr_t base = (uintptr_t) stack->pointer;
166-
stack->valgrind = VALGRIND_STACK_REGISTER(base, base + msize - ZEND_FIBER_GUARD_PAGES * page_size);
166+
stack->valgrind = VALGRIND_STACK_REGISTER(base, base + stack->size);
167167
#endif
168168

169169
return true;

0 commit comments

Comments
 (0)