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

[do not merge] Remove the special-case code that suppresses pure-PHP properties. #9930

Closed
wants to merge 1 commit into from

Conversation

haberman
Copy link
Member

@haberman haberman commented May 6, 2022

There is a chance this may fix some SEGVs seen on PHP 8.1 when
OPCache is enabled:
#9446 (comment)

However this also will increase memory usage of PHP protos, and
will likely introduce CPU overhead also. Therefore we probably don't
want to release the code in this state.

If this indeed fixes the SEGVs being seen, we should redesign the generated
code to no longer create properties unless pure-PHP is being used.

cc: @bshaffer

There is a chance this may fix some SEGVs seen on PHP 8.1 when
OPCache is enabled:
  protocolbuffers#9446 (comment)

However this also will increase memory usage of PHP protos, and
will likely introduce CPU overhead also.
zval arena;
const Descriptor* desc;
upb_Message *msg;
zend_object std;
Copy link
Member

Choose a reason for hiding this comment

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

please add a comment explaining that this must come last because PHP uses a tail allocation to do more fun stuff

@acozzette
Copy link
Member

Let me go ahead and close this since it sounds like the segfault problem has already been fixed.

@acozzette acozzette closed this Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants