Skip to content

Fix conflicting checks for stop point in arc.mm:emptyPool()#382

Merged
davidchisnall merged 3 commits intognustep:masterfrom
cmpwi:master
Apr 20, 2026
Merged

Fix conflicting checks for stop point in arc.mm:emptyPool()#382
davidchisnall merged 3 commits intognustep:masterfrom
cmpwi:master

Conversation

@cmpwi
Copy link
Copy Markdown
Contributor

@cmpwi cmpwi commented Apr 19, 2026

The code used NULL before, so I decided to stick with that.

@davidchisnall
Copy link
Copy Markdown
Member

Looks like the tests that cover this code are now all failing.

@cmpwi
Copy link
Copy Markdown
Contributor Author

cmpwi commented Apr 19, 2026

Oopsie! The insert point shouldn't go behind the pool if new ones are allocated. Should be all good now!

Comment thread arc.mm
while (1)

/* Find pool in which object to stop at is located. */
while (stopPool != NULL)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This condition is now dead. We leave the loop via either break or return, never by this condition failing.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure what you mean. The return is after the loop, yes?

@davidchisnall davidchisnall merged commit fe3b225 into gnustep:master Apr 20, 2026
94 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants