Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-8771] Object deallocation in Xcode 10 Playground does not work #65

Open
DevAndArtist mannequin opened this issue Sep 17, 2018 · 4 comments
Open

[SR-8771] Object deallocation in Xcode 10 Playground does not work #65

DevAndArtist mannequin opened this issue Sep 17, 2018 · 4 comments

Comments

@DevAndArtist
Copy link
Mannequin

DevAndArtist mannequin commented Sep 17, 2018

Previous ID SR-8771
Radar rdar://problem/44513925
Original Reporter @DevAndArtist
Type Bug
Environment

Xcode 10 GM

Additional Detail from JIRA
Votes 0
Component/s Xcode Playground Support
Labels Bug
Assignee None
Priority Medium

md5: ca7b422a0aafdb7e1527b0c4b35306bd

Issue Description:

Playgroud does proceed with deallocation of objects when expected in Xcode 10 GM.

class Ref {
  weak var obj: Obj?
}

class Obj {
  deinit {
    print("deinit")
  }
}

var obj: Obj? = Obj() // Never deallocates in Xcode 10 Playground
let ref = Ref()
ref.obj = obj
obj = nil

Discussion in the forums:

https://forums.swift.org/t/is-this-a-swift-4-2-regression-object-not-deallocating/16136

@DevAndArtist
Copy link
Mannequin Author

DevAndArtist mannequin commented Sep 17, 2018

Swift Sync System create

@DevAndArtist
Copy link
Mannequin Author

DevAndArtist mannequin commented Sep 17, 2018

@belkadan was it okay for me to call the sync system? And do I always need to add the link in order for it to trigger? I did it the first time ever, but only because I've seen it on every ticket that creates a rdar.

@belkadan
Copy link

It's better for you not to, cause if there's already a Radar tracking the same issue we'd rather link the existing one. (I also think we'd prefer if non-Apple people don't use it in general, just for corporate / open-source boundary reasons.)

@DevAndArtist
Copy link
Mannequin Author

DevAndArtist mannequin commented Sep 19, 2018

Thanks for clarification on that.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from swiftlang/swift May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant