Skip to content

Rerun of GC due to should_rerun_gc = 1 resets count variable, increasing buffer indefinitely #9265

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

Conversation

olsavmic
Copy link
Contributor

@olsavmic olsavmic commented Aug 7, 2022

Resolves #9266

@nikic
Copy link
Member

nikic commented Aug 7, 2022

The indentation is broken (use tabs), but otherwise this looks reasonable.

@olsavmic
Copy link
Contributor Author

olsavmic commented Aug 7, 2022

Fixed, I'll try to provide a test case soon.

@olsavmic olsavmic force-pushed the mo-gc-destructor-do-not-reset-count branch from 52f652f to 5659a59 Compare August 7, 2022 19:40
@Girgias
Copy link
Member

Girgias commented Aug 8, 2022

Does this also happen on PHP 8.0 or just 8.1?

@olsavmic
Copy link
Contributor Author

olsavmic commented Aug 8, 2022

It's only affecting >=8.1 as the change was introduced in #5581

Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

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

Thank you! Besides the nit, this looks good to me.

@cmb69 cmb69 closed this in 0709578 Aug 9, 2022
@cmb69
Copy link
Member

cmb69 commented Aug 9, 2022

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GC root buffer keeps growing when destructors are present
4 participants