* pthread_support.c (ASSERT_SYMS_INITIALIZED): New macro (checks either
GC_syms_initialized or parallel_initialized depending on
GC_USE_DLOPEN_WRAP).
* pthread_support.c [!SN_TARGET_ORBIS && !SN_TARGET_PSP2] (pthread_join,
pthread_detach): Call ASSERT_SYMS_INITIALIZED() instead of
INIT_REAL_SYMS().
# define INIT_REAL_SYMS() if (EXPECT(GC_syms_initialized, TRUE)) {} \
else GC_init_real_syms()
+# define ASSERT_SYMS_INITIALIZED() GC_ASSERT(GC_syms_initialized)
#else
# define INIT_REAL_SYMS() (void)0
+# define ASSERT_SYMS_INITIALIZED() GC_ASSERT(parallel_initialized)
#endif
static GC_bool parallel_initialized = FALSE;
GC_thread t;
DCL_LOCK_STATE;
- INIT_REAL_SYMS();
+ ASSERT_SYMS_INITIALIZED();
LOCK();
t = GC_lookup_thread(thread);
/* This is guaranteed to be the intended one, since the thread id */
GC_thread t;
DCL_LOCK_STATE;
- INIT_REAL_SYMS();
+ ASSERT_SYMS_INITIALIZED();
LOCK();
t = GC_lookup_thread(thread);
UNLOCK();