asan fixes for gcc and gnu runtime

This commit is contained in:
rfm 2024-11-30 19:06:40 +00:00
parent 018111efbb
commit 9cdb4f98ba
5 changed files with 13 additions and 6 deletions

View file

@ -1399,7 +1399,8 @@ unregisterActiveThread(NSThread *thread)
*/
if (i > 15)
{
NSWarnLog(@"Truncating thread name '%s' to 15 characters due to platform limitations", buf);
NSWarnLog(@"Truncating thread name '%s' to 15 characters"
@" due to platform limitations", buf);
i = 15;
}
else
@ -1467,6 +1468,7 @@ nsthreadLauncher(void *thread)
setThreadForCurrentThread(t);
ENTER_POOL
/*
* Let observers know a new thread is starting.
*/
@ -1479,6 +1481,7 @@ nsthreadLauncher(void *thread)
userInfo: nil];
[t _setName: [t name]];
LEAVE_POOL
[t main];