From 93d798211717d60ddb627a465f14b0505b950acd Mon Sep 17 00:00:00 2001 From: TheTurtle Date: Mon, 28 Oct 2024 01:16:08 +0200 Subject: [PATCH] pthread_spec: Make assert into a log --- src/core/libraries/kernel/threads/pthread_spec.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/libraries/kernel/threads/pthread_spec.cpp b/src/core/libraries/kernel/threads/pthread_spec.cpp index c74766005..fe6f35130 100644 --- a/src/core/libraries/kernel/threads/pthread_spec.cpp +++ b/src/core/libraries/kernel/threads/pthread_spec.cpp @@ -92,7 +92,9 @@ void _thread_cleanupspecific() { } delete[] curthread->specific; curthread->specific = nullptr; - ASSERT(curthread->specific_data_count == 0); + if (curthread->specific_data_count > 0) { + LOG_WARNING(Lib_Kernel, "Thread has exited with leftover thread-specific data"); + } } int PS4_SYSV_ABI posix_pthread_setspecific(PthreadKeyT key, const void* value) {