Skip to content

Commit 7536b94

Browse files
authored
Merge pull request #5722 from Gankro/unmanaged
Resolve ABI FIXME#158
2 parents 6b05461 + ad0a9da commit 7536b94

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

stdlib/public/core/HashedCollections.swift.gyb

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -268,14 +268,12 @@ internal var _hashContainerDefaultMaxLoadFactorInverse: Double {
268268
internal func _stdlib_NSObject_isEqual(_ lhs: AnyObject, _ rhs: AnyObject) -> Bool
269269
#endif
270270

271-
//===--- Hacks and workarounds --------------------------------------------===//
272-
273-
// FIXME(ABI)#158 (Performance)
274-
// There used to be a now-fixed optimizer bug that prevented using
275-
// UnsafePointer<Unmanaged<AnyObject>> in Dictionary implementation.
276-
// rdar://problem/16861508
277-
/// Like `UnsafeMutablePointer<Unmanaged<AnyObject>>`, or `id
278-
/// __unsafe_unretained *` in Objective-C ARC.
271+
272+
/// A temporary view of an array of AnyObject as an array of Unmanaged<AnyObject>
273+
/// for fast iteration and transformation of the elements.
274+
///
275+
/// Accesses the underlying raw memory as Unmanaged<AnyObject> using untyped
276+
/// memory accesses. The memory remains bound to managed AnyObjects.
279277
internal struct _UnmanagedAnyObjectArray {
280278
/// Underlying pointer.
281279
internal var value: UnsafeMutableRawPointer

0 commit comments

Comments
 (0)