From 5dd9d3fef02f45dde022f2dd3154f6f92c32f846 Mon Sep 17 00:00:00 2001 From: Dipin Hora Date: Sat, 26 Sep 2020 11:50:46 -0400 Subject: [PATCH] Move assertion up a few lines. --- src/libponyrt/actor/actor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libponyrt/actor/actor.c b/src/libponyrt/actor/actor.c index a04162bb0a..05e3f785a5 100644 --- a/src/libponyrt/actor/actor.c +++ b/src/libponyrt/actor/actor.c @@ -93,9 +93,9 @@ static void send_unblock(pony_actor_t* actor) static void send_block(pony_ctx_t* ctx, pony_actor_t* actor) { // We're blocked, send block message. + pony_assert(ctx->current == actor); set_flag(actor, FLAG_BLOCKED_SENT); set_flag(actor, FLAG_CD_CONTACTED); - pony_assert(ctx->current == actor); ponyint_cycle_block(actor, &actor->gc); // Trigger garbage collection. GC will get run next time `try_gc` is called