swift
swift copied to clipboard
[SR-12106] XCode 11 Memory Leak
Previous ID | SR-12106 |
Radar | rdar://problem/58999153 |
Original Reporter | balastudor (JIRA User) |
Type | Bug |
Environment
XCode 11.3.1
Additional Detail from JIRA
Votes | 0 |
Component/s | |
Labels | Bug |
Assignee | None |
Priority | Medium |
md5: 9f7627ec0e9064733d291cac7b816c76
Issue Description:
1. Create a new Swift Project
2. Add the following code
3. Watch your memory grow
PS: In a real case code scenario, the variables might be more complex and/or also have their contents spread all over the code.
PS2: I haven't saw this issue in XC 10
class MyClass {
func memoryKiler(param: MyClass) -> Bool {
return self.q == param.q &&
self.w == param.w &&
self.e == param.e &&
self.r == param.r &&
self.t == param.t &&
self.y == param.y &&
self.u == param.u &&
self.i == param.i &&
self.o == param.o &&
self.p == param.p &&
self.a == param.a &&
self.s == param.s &&
self.d == param.d &&
self.f == param.f &&
self.g == param.g &&
self.h == param.h &&
self.j == param.j &&
self.k == param.k &&
self.l == param.l &&
self.z == param.z &&
self.x == param.x &&
self.c == param.c &&
self.v == param.v &&
self.b == param.b &&
self.n == param.n &&
self.m == param.m
}
}
@swift-ci create
Issue can be closed. It's no longer reproducing with the latest XCode.