Commit Graph

1 Commits

Author SHA1 Message Date
Mike Ash
b00397c7eb [Concurrency] Fix ObjC weak references to actors.
Change actor destruction to call swift_deallocClassInstance instead of swift_deallocObject. When ObjC interop is enabled, swift_deallocClassInstance will check the "pure swift deallocation" bit and call into the ObjC runtime to destruct the instance when needed. This is what clears weak references and associated objects.

rdar://91270492
2022-04-06 15:57:01 -04:00