swift icon indicating copy to clipboard operation
swift copied to clipboard

[SR-12106] XCode 11 Memory Leak

Open swift-ci opened this issue 5 years ago • 2 comments

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 avatar Jan 29 '20 13:01 swift-ci

@swift-ci create

beccadax avatar Jan 29 '20 19:01 beccadax

Issue can be closed. It's no longer reproducing with the latest XCode.

tudordanbalas avatar May 02 '24 08:05 tudordanbalas