Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove not needed stack size adjustment on freebsd
  • Loading branch information
devnexen committed Jul 23, 2023
commit 827fb3f7b463b55f6a89eeb7432ce49ee9a6f59c
9 changes: 0 additions & 9 deletions Zend/zend_call_stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ static bool zend_call_stack_get_freebsd_pthread(zend_call_stack *stack)
int error;
void *addr;
size_t max_size;
size_t guard_size;

/* pthread will return bogus values for the main thread */
ZEND_ASSERT(!zend_call_stack_is_main_thread());
Expand All @@ -275,14 +274,6 @@ static bool zend_call_stack_get_freebsd_pthread(zend_call_stack *stack)
goto fail;
}

error = pthread_attr_getguardsize(&attr, &guard_size);
if (error) {
return false;
}

addr = (char *)addr + guard_size;
max_size -= guard_size;

stack->base = (int8_t*)addr + max_size;
stack->max_size = max_size;

Expand Down