mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Heap: slowDealloc() design feedback from John
Swift SVN r18083
This commit is contained in:
@@ -279,7 +279,8 @@ void swift::swift_weakRelease(HeapObject *object) {
|
||||
assert(0 && "weak retain count underflow");
|
||||
}
|
||||
if (newCount == 0) {
|
||||
swift_slowDealloc(object, 0);
|
||||
swift_slowDealloc(object,
|
||||
_swift_zone_size(_swift_zone_get_shims(), object));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user