Skip to content

Update LifetimeTracked init & deinit methods for Pre-Incr-decrement removal #708

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

Closed
wants to merge 2 commits into from

Conversation

Minal91
Copy link

@Minal91 Minal91 commented Dec 21, 2015

…emoval

++LifetimeTracked.instances
serialNumber = ++LifetimeTracked._nextSerialNumber
LifetimeTracked.instances += 1
serialNumber = LifetimeTracked._nextSerialNumber + 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is not equivalent, it needs to update _nextSerialNumber as well.

_nextSerialNumber incremented also
@Minal91 Minal91 closed this Dec 22, 2015
@Minal91 Minal91 deleted the m-LifetimeTracked branch December 22, 2015 06:27
freak4pc pushed a commit to freak4pc/swift that referenced this pull request Sep 28, 2022
[Stress tester XFails] Update XFails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants