diff options
Diffstat (limited to 'darwin_stop_world.c')
-rw-r--r-- | darwin_stop_world.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/darwin_stop_world.c b/darwin_stop_world.c index 2872bc03..05463461 100644 --- a/darwin_stop_world.c +++ b/darwin_stop_world.c @@ -658,6 +658,9 @@ GC_INLINE void GC_thread_resume(thread_act_t thread) struct thread_basic_info info; mach_msg_type_number_t outCount = THREAD_BASIC_INFO_COUNT; +# if defined(CPPCHECK) && defined(DEBUG_THREADS) + info.run_state = 0; +# endif kern_result = thread_info(thread, THREAD_BASIC_INFO, (thread_info_t)&info, &outCount); if (kern_result != KERN_SUCCESS) |