swift
688a67a7 - Fix actor/job/task leaks in the back deployment runtime.

Commit
3 years ago
Fix actor/job/task leaks in the back deployment runtime. When initializing an actor, job, or task, use _swift_instantiateInertHeapObject to have the OS's libswiftCore set up the object's refcounts field, to ensure we get a valid initial state. There is no equivalent for immortal objects, but by a stroke of luck the new representation for immortal refcounts happens to set the immortal bit in the old representation. rdar://93087343 (cherry picked from commit fa0900192301e6df138e70985d20b0c5753454df)
Author
Committer
Parents
  • stdlib/public/BackDeployConcurrency
    • File
      Actor.h
    • File
      Task.h