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

Fix duplicate dynamic properties in hooked object iterator properties table #17085

Closed
wants to merge 1 commit into from

Conversation

iluuu1994
Copy link
Member

Ouch, Z_TRY_ADDREF_P() uses pz twice... Also make sure we actually reserve enough Buckets for all dynamic properties.

We should consider updating Z_TRY_ADDREF_P() and Z_TRY_DELREF_P() on master. Maybe the pattern is duplicated to reduce register pressure, I'm not sure. Maybe @dstogov can comment.

… table

Ouch, Z_TRY_ADDREF_P() uses pz twice... Also make sure we actually reserve
enough Buckets for all dynamic properties.
@dstogov
Copy link
Member

dstogov commented Dec 9, 2024

We should consider updating Z_TRY_ADDREF_P() and Z_TRY_DELREF_P() on master. Maybe the pattern is duplicated to reduce register pressure, I'm not sure. Maybe @dstogov can comment.

I don't see any problems updating Z_TRY_ADDREF_P(). We probably just missed the possibility of macro side effects.

Copy link
Member

@arnaud-lb arnaud-lb left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@iluuu1994 iluuu1994 closed this in 8491730 Dec 9, 2024
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.

3 participants