Skip to content

Commit 84a8e5f

Browse files
committed
fixup! Track the identity of the task draining the actor in the ActiveActorStatus
Radar-Id: rdar://problem/86100521
1 parent fbfbd41 commit 84a8e5f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

stdlib/public/Concurrency/Actor.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,8 +658,13 @@ class alignas(sizeof(void *) * 2) ActiveActorStatus {
658658
ActiveActorStatus() = default;
659659
#endif
660660

661+
#if SWIFT_CONCURRENCY_ENABLE_PRIORITY_ESCALATION
661662
constexpr ActiveActorStatus()
662663
: Flags(), DrainLock(DLOCK_OWNER_NULL), FirstJob(JobRef()) {}
664+
#else
665+
constexpr ActiveActorStatus()
666+
: Flags(), FirstJob(JobRef()) {}
667+
#endif
663668

664669
bool isDistributedRemote() const { return Flags & DistributedRemote; }
665670
ActiveActorStatus withDistributedRemote() const {

0 commit comments

Comments
 (0)