We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8aa399 commit ebd3240Copy full SHA for ebd3240
1 file changed
libc-top-half/musl/src/thread/pthread_create.c
@@ -277,6 +277,11 @@ static int start_c11(void *p)
277
__attribute__((export_name("wasi_thread_start")))
278
void wasi_thread_start(int tid, void *p)
279
{
280
+ /*
281
+ * Note: it's fragile to implement wasi_thread_start in C.
282
+ * On entry, we don't even have C stack (__stack_pointer)
283
+ * set up. Be careful when modifying this function.
284
+ */
285
struct start_args *args = p;
286
__asm__(".globaltype __tls_base, i32\n"
287
"local.get %0\n"
0 commit comments