thirdparty: fix GC_suspend_handler_inner in gc.c after cca6755

This commit is contained in:
Delyan Angelov 2024-08-01 15:01:14 +03:00
parent cca6755d28
commit 28103d15d5
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -35507,7 +35507,7 @@ STATIC void GC_suspend_handler_inner(ptr_t dummy, void *context)
GC_log_printf("Suspending %p\n", (void *)pthread_self()); GC_log_printf("Suspending %p\n", (void *)pthread_self());
# endif # endif
me = GC_lookup_self_thread_async(); me = GC_lookup_self_thread_async();
if (NULL == me) return NULL; // __v_, make the sanitizers and -cstrict happy if (NULL == me) return; // __v_, make the sanitizers and -cstrict happy
if ((me -> last_stop_count & ~(word)THREAD_RESTARTED) == my_stop_count) { if ((me -> last_stop_count & ~(word)THREAD_RESTARTED) == my_stop_count) {
/* Duplicate signal. OK if we are retrying. */ /* Duplicate signal. OK if we are retrying. */
if (!GC_retry_signals) { if (!GC_retry_signals) {