Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Unity-Technologies/bdwgc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--win32_threads.c2
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");