-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Closed
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfmemory leakbug: Memory leakbug: Memory leak
Description
| Previous ID | SR-4518 |
| Radar | rdar://31666592 |
| Original Reporter | Jay18001 (JIRA User) |
| Type | Bug |
Attachment: Download
Environment
I've only tested on iOS 10.3 with Xcode 8.3 on 10.12.3 (16D32)
Additional Detail from JIRA
| Votes | 0 |
| Component/s | Compiler |
| Labels | Bug, Leak |
| Assignee | @mikeash |
| Priority | Medium |
md5: d6c09cb4c02ae76ce77a67ef1ead510e
Issue Description:
There is a swift_slowAlloc leak when using an enum like the following. The leak only occurs when the second case is used in the third like auto(estimate: .fixed(size: 10)).
public indirect enum Enum {
case ratio(ratio: CGFloat)
case fixed(size: CGFloat)
case auto(estimate: Enum)
}
However it does not accure when the first case is used with the third like auto(estimate: .ratio(ratio: 10))
Metadata
Metadata
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfmemory leakbug: Memory leakbug: Memory leak