From c862ef6e40695a0fa9ce17cb986c48fbc37cf967 Mon Sep 17 00:00:00 2001 From: Mika Nystrom Date: Thu, 21 Jun 2018 06:44:16 -0700 Subject: [PATCH] doc only --- m3-libs/m3core/src/coroutine/UCONTEXT/CoroutineUcontext.m3 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/m3-libs/m3core/src/coroutine/UCONTEXT/CoroutineUcontext.m3 b/m3-libs/m3core/src/coroutine/UCONTEXT/CoroutineUcontext.m3 index 5a46fc82bd..c4c16c8804 100644 --- a/m3-libs/m3core/src/coroutine/UCONTEXT/CoroutineUcontext.m3 +++ b/m3-libs/m3core/src/coroutine/UCONTEXT/CoroutineUcontext.m3 @@ -352,11 +352,10 @@ PROCEDURE Call(to : T) : T = to.succ := me; to.from := me; (* in caller context *) - (* mention to ThreadPThread that we are about to swap stacks *) - IF DEBUG THEN DbgStackInfo("Call before swap") END; WITH top = ContextC.PushContext(me.context) DO + (* mention to ThreadPThread that we are about to swap stacks *) (* when the stack disagrees with the execution context is a critical section for GC *) ThreadPThread.IncInCritical(); @@ -385,9 +384,6 @@ PROCEDURE Call(to : T) : T = (* if we wake up here and the dead field is set, another coroutine exited and is notifying us to reap it, - - reaping needs to be done in the CS since we are changing the stack - list for the thread *) IF me.dead # NIL THEN Reap(me.dead^);