Closed orangematt closed 3 months ago
Fix c4m_get_stack_bounds for Linux. The original implementation incorrectly swaps bottom/top.
c4m_get_stack_bounds
Move c4m_get_stack_bounds from gc.h to gc.c since there's no reason for it to be public at all, never mind static inline.
gc.h
gc.c
pthread_getattr_np
Fix
c4m_get_stack_bounds
for Linux. The original implementation incorrectly swaps bottom/top.Move
c4m_get_stack_bounds
fromgc.h
togc.c
since there's no reason for it to be public at all, never mind static inline.gc.c
pthread_getattr_np
from the main thread is extremely high on Linux for both glibc and, to a lesser extent, musl.