Skip to content

Commit 0af3bfb

Browse files
committed
Point to latest pthread code for macos
1 parent 20176b0 commit 0af3bfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BadAccessGuards.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ bool IsAddressInCurrentStack(void* ptr)
145145
pthread_t currentThread = pthread_self();
146146
void* stackAddr = pthread_get_stackaddr_np(currentThread);
147147
size_t stackSize = pthread_get_stacksize_np(currentThread);
148-
// Stack grows downards, see https://github.com/apple/darwin-libpthread/blob/2b46cbcc56ba33791296cd9714b2c90dae185ec7/src/pthread.c#L979
148+
// Stack grows downards, see https://github.com/apple-oss-distributions/libpthread/blob/1ebf56b3a702df53213c2996e5e128a535d2577e/src/pthread.c#L1020
149149
// The two functions above do NOT match the pthread_attr_tt attributes! https://github.com/apple/darwin-libpthread/blob/2b46cbcc56ba33791296cd9714b2c90dae185ec7/src/pthread.c#L476
150150
return (uintptr_t(stackAddr) - stackSize) <= uintptr_t(ptr) && ptr <= stackAddr;
151151
}

0 commit comments

Comments
 (0)