File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1665,6 +1665,10 @@ void ProcessOutOfLineJob::process(Job *job) {
1665
1665
#endif /* !SWIFT_CONCURRENCY_ACTORS_AS_LOCKS */
1666
1666
1667
1667
void DefaultActorImpl::destroy () {
1668
+ #if SWIFT_CONCURRENCY_EMBEDDED
1669
+ // Embedded runtime does not track the refcount inside deinit
1670
+ // See swift_release_n_(object:,n:) in EmbeddedRuntime.swift
1671
+ #else
1668
1672
HeapObject *object = asAbstract (this );
1669
1673
size_t retainCount = swift_retainCount (object);
1670
1674
if (SWIFT_UNLIKELY (retainCount > 1 )) {
@@ -1680,6 +1684,7 @@ void DefaultActorImpl::destroy() {
1680
1684
descriptor ? descriptor->Name .get () : " <unknown>" ,
1681
1685
retainCount);
1682
1686
}
1687
+ #endif
1683
1688
1684
1689
#if SWIFT_CONCURRENCY_ACTORS_AS_LOCKS
1685
1690
// TODO (rokhinip): Do something to assert that the lock is unowned
You can’t perform that action at this time.
0 commit comments