From 0f1be0122e31af38d9a0c3a428325469e18fed1b 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 c74766005e..fe6f351303 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) {