diff options
-rw-r--r-- | win32_threads.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/win32_threads.c b/win32_threads.c index b6141bb0..650fe815 100644 --- a/win32_threads.c +++ b/win32_threads.c @@ -1509,6 +1509,7 @@ STATIC word GC_push_stack_for(GC_thread thread, DWORD me) /* require looping. */ word *regs = thread->context_regs; + GC_ASSERT(thread->suspended); sp = thread->context_sp; # else /* For unblocked threads call GetThreadContext(). */ @@ -1516,6 +1517,7 @@ STATIC word GC_push_stack_for(GC_thread thread, DWORD me) { CONTEXT context; + GC_ASSERT(thread->suspended); context.ContextFlags = GET_THREAD_CONTEXT_FLAGS; if (!GetThreadContext(THREAD_HANDLE(thread), &context)) ABORT("GetThreadContext failed"); |