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