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) {
16651665#endif /* !SWIFT_CONCURRENCY_ACTORS_AS_LOCKS */
16661666
16671667void 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
16681672 HeapObject *object = asAbstract (this );
16691673 size_t retainCount = swift_retainCount (object);
16701674 if (SWIFT_UNLIKELY (retainCount > 1 )) {
@@ -1680,6 +1684,7 @@ void DefaultActorImpl::destroy() {
16801684 descriptor ? descriptor->Name .get () : " <unknown>" ,
16811685 retainCount);
16821686 }
1687+ #endif
16831688
16841689#if SWIFT_CONCURRENCY_ACTORS_AS_LOCKS
16851690 // TODO (rokhinip): Do something to assert that the lock is unowned
You can’t perform that action at this time.
0 commit comments