Skip to content

Commit

Permalink
pthread_spec: Make assert into a log
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelthegreat authored Oct 27, 2024
1 parent 8daecbc commit 0f1be01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/libraries/kernel/threads/pthread_spec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0f1be01

Please sign in to comment.