Skip to content

Commit e823658

Browse files
committed
Fix get_stack()
Remove guard_size from the size
1 parent 997bb05 commit e823658

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Python/ceval.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -525,9 +525,8 @@ get_stack(uintptr_t *start, size_t *size)
525525
err |= pthread_attr_destroy(&attr);
526526
}
527527
if (err == 0) {
528-
uintptr_t base = (uintptr_t)stack_addr + guard_size;
529-
*start = base;
530-
*size = (base + stack_size) - *start;
528+
*start = (uintptr_t)stack_addr + guard_size;
529+
*size = stack_size - guard_size;
531530
}
532531
else
533532
# endif

0 commit comments

Comments
 (0)