* pthread_stop_world.c (GC_suspend_all, GC_start_world): Cast thread_id
to pointer via word type on passing to GC_on_thread_event; add comment.
case 0:
if (GC_on_thread_event)
GC_on_thread_event(GC_EVENT_THREAD_SUSPENDED,
- (void *)thread_id);
+ (void *)(word)thread_id);
+ /* Note: thread_id might be truncated. */
break;
default:
ABORT_ARG1("pthread_kill failed at suspend",
case 0:
if (GC_on_thread_event)
GC_on_thread_event(GC_EVENT_THREAD_UNSUSPENDED,
- (void *)thread_id);
+ (void *)(word)thread_id);
break;
default:
ABORT_ARG1("pthread_kill failed at resume",