-
Notifications
You must be signed in to change notification settings - Fork 8k
Disable inlining and inter-procedure-analyses for zend_string_equal_val() function that may be overriden for valgrind #13099
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
Conversation
…al() function that may be overriden for valgrind This is a more safely way to fix phpGH-9068
ndossche
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason I did not fix it this way is because I was afraid this could negatively impact performance of normal executions, while the issue only happens when people want to debug using Valgrind.
In any case, this solution seems safer and looks correct. I tested and it works. Thanks.
Yeah, I understood, but the degradation is really small (valgrind shows 0.0004% more instructions on 100 requests to wordpress). Also your solution wasn't complete as it didn't prevent inlining (I saw it with CLANG).
Thanks for taking a look. |
* PHP-8.2: Disable inlining and inter-procedure-analyses for zend_string_equal_val() function that may be overriden for valgrind (#13099)
* PHP-8.3: Disable inlining and inter-procedure-analyses for zend_string_equal_val() function that may be overriden for valgrind (#13099)
Measuring this with valgrind doesn't make any sense of course, but analysing the call traces, I saw that zend_string_equal_val() was never called from zend_string.h at all. |
…al() function that may be overriden for valgrind (php#13099) This is a more safely way to fix phpGH-9068
…al() function that may be overriden for valgrind (php#13099) This is a more safely way to fix phpGH-9068
…al() function that may be overriden for valgrind (php#13099) This is a more safely way to fix phpGH-9068
* PHP-8.1: Disable inlining and inter-procedure-analyses for zend_string_equal_val() function that may be overriden for valgrind (#13099) Skip lc_ctype_inheritance.phpt on macos 15+
* PHP-8.2: Disable inlining and inter-procedure-analyses for zend_string_equal_val() function that may be overriden for valgrind (#13099) Skip lc_ctype_inheritance.phpt on macos 15+
* PHP-8.3: Disable inlining and inter-procedure-analyses for zend_string_equal_val() function that may be overriden for valgrind (#13099) Skip lc_ctype_inheritance.phpt on macos 15+
* PHP-8.4: Disable inlining and inter-procedure-analyses for zend_string_equal_val() function that may be overriden for valgrind (#13099) Skip lc_ctype_inheritance.phpt on macos 15+
* PHP-8.5: Disable inlining and inter-procedure-analyses for zend_string_equal_val() function that may be overriden for valgrind (#13099) Skip lc_ctype_inheritance.phpt on macos 15+
This is a more safely way to fix GH-9068