Open
Description
Previous ID | SR-10813 |
Radar | None |
Original Reporter | Pogonets (JIRA User) |
Type | Bug |
Additional Detail from JIRA
Votes | 0 |
Component/s | libdispatch |
Labels | Bug, Leak |
Assignee | None |
Priority | Medium |
md5: 5987bd4bd4977311481d967a3a2e3298
Issue Description:
We found memory leak with DispatchWorkItem
on android-armv7
After a quick research, this leak doesn't reproduce on linux x86_64 and android arm64
So looks like it affects all 32bit platforms
Here is a sample:
import Dispatch
let group = DispatchGroup()
let queue = DispatchQueue.global()
class A {
deinit {
print("deinit")
}
}
func test() {
let a = A()
queue.async(group: group, execute: DispatchWorkItem {
print(a)
})
}
test()
group.wait()
deinit
not called
And without DispatchWorkItem
this code also works fine