From 47439165d8d15964074801436e99aa57ce4c1bed Mon Sep 17 00:00:00 2001 From: limingqi107 Date: Wed, 30 Jun 2021 13:10:27 +0800 Subject: [PATCH] fix the bug of deadloop actor runtime --- mindspore/core/mindrt/src/actor/actorpolicy.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindspore/core/mindrt/src/actor/actorpolicy.cc b/mindspore/core/mindrt/src/actor/actorpolicy.cc index c4732b446c1..063e27058df 100644 --- a/mindspore/core/mindrt/src/actor/actorpolicy.cc +++ b/mindspore/core/mindrt/src/actor/actorpolicy.cc @@ -91,7 +91,7 @@ int ShardedThread::EnqueMessage(std::unique_ptr &&msg) { ++msgCount; // true : The actor is running. else the actor will be ready to run. - if (start && (ready == false) && (terminated == false) && actor->IsActive(msgCount)) { + if (start && (ready == false) && (terminated == false)) { ActorMgr::GetActorMgrRef()->SetActorReady(actor); ready = true; }