mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Replace them with swift_cxx_newObject/swift_cxx_deleteObject to avoid calling overridden global operators. Overridden global operators can sometimes fail when called from places the authors didn't expect. The particular uses being changed here are: 1. Creation of new SingletonMetadataCacheEntry objects. 2. Allocation of the _globalIvarOffsets array in initGenericObjCClass. 3. Creation/destruction of SwiftTLSContext objects. rdar://106238547
1.9 KiB
1.9 KiB