Skip to content

ext/opcache/zend_shared_alloc: minor code cleanup #10590

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
wants to merge 3 commits into from

Conversation

MaxKellermann
Copy link
Contributor

Note: formally conflicts with #10589; I'll rebase and fix the conflict after one of the PR gets merged.

The variable is only used once inside zend_shared_alloc_create_lock()
and the value is never needed again.  Let's save a few kilobytes of
memory by making the buffer local.
@MaxKellermann
Copy link
Contributor Author

Rebased & fixed conflict after #10589 was merged.

@MaxKellermann MaxKellermann deleted the shared_lock_cleanup branch March 7, 2023 10:30
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.

1 participant