Skip to content

Commit 57733f9

Browse files
authored
Merge pull request swiftlang#64093 from apple/rokhinip/105932276-remove-overly-strict-assert
Relax overly strict assert
2 parents ec4deaf + 4c92890 commit 57733f9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

stdlib/public/Concurrency/TaskPrivate.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,6 @@ class alignas(2 * sizeof(void*)) ActiveTaskStatus {
527527
assert(!dispatch_lock_is_locked(ExecutionLock));
528528
return ActiveTaskStatus(Record, Flags, dispatch_lock_value_for_self());
529529
} else {
530-
assert(dispatch_lock_is_locked_by_self(ExecutionLock));
531530
return ActiveTaskStatus(Record, Flags, ExecutionLock & ~DLOCK_OWNER_MASK);
532531
}
533532
#else

0 commit comments

Comments
 (0)