linguini1 commented on code in PR #3412:
URL: https://github.com/apache/nuttx-apps/pull/3412#discussion_r2849635540


##########
testing/ostest/sched_thread_local.c:
##########
@@ -114,6 +114,23 @@ static void *thread_func(void *parameter)
       ASSERT(false);
     }
 
+  printf("thread_func[%d]: TLS addr=%p\n", id, &g_tls_int);
+
+  /* In a broken system, all threads might point to the same static address */
+
+  static void *g_first_thread_addr = NULL;
+  if (id == 0)

Review Comment:
   I think it does start from 0 based on the attached log (it is printed a few 
times)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to