Heap: slowDealloc() design feedback from John

Swift SVN r18083
This commit is contained in:
Dave Zarzycki
2014-05-14 23:04:33 +00:00
parent 8e1a9087ee
commit 9dd82e3373
2 changed files with 3 additions and 5 deletions

View File

@@ -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));
}
}