* win32_threads.c (GC_push_stack_for): Add assertion that thread is
suspended (before using context registers) if thread is not self and
not blocked.
/* require looping. */
word *regs = thread->context_regs;
+ GC_ASSERT(thread->suspended);
sp = thread->context_sp;
# else
/* For unblocked threads call GetThreadContext(). */
{
CONTEXT context;
+ GC_ASSERT(thread->suspended);
context.ContextFlags = GET_THREAD_CONTEXT_FLAGS;
if (!GetThreadContext(THREAD_HANDLE(thread), &context))
ABORT("GetThreadContext failed");