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

Decrease opcache.jit_buffer_size to 128M #11168

Open
wants to merge 1 commit into
base: 5.x
Choose a base branch
from

Conversation

edsrzf
Copy link
Contributor

@edsrzf edsrzf commented Nov 25, 2024

As of PHP 8.4, this is the maximum value available for AArch64. Without this change, running Psalm with PHP 8.4 on that architecture results in a warning:

Warning: JIT on AArch64 doesn't support opcache.jit_buffer_size above 128M.

It's still possible to configure up to 2G for x86_64, so we could keep the 512M value on that architecture at the cost of a bit more complexity to detect the PHP version and current CPU architecture. (Looks like php_uname('m') would be the way to check CPU arch.)

As of PHP 8.4, this is the maximum value available for AArch64. Without
this change, running Psalm with PHP 8.4 on that architecture results in
a warning:

```
Warning: JIT on AArch64 doesn't support opcache.jit_buffer_size above 128M.
```

It's still possible to configure up to 2G for x86_64, so we could keep the
512M value on that architecture at the cost of a bit more complexity to
detect the PHP version and current CPU architecture. (Looks like `php_uname('m')`
would be the way to check CPU arch.)
@edsrzf edsrzf mentioned this pull request Nov 25, 2024
5 tasks
@edsrzf
Copy link
Contributor Author

edsrzf commented Nov 26, 2024

Based on the CI failures, maybe we need 512M in the Windows configuration? I'm not sure what to make of the failure. I'll await general feedback before I change anything.

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

Successfully merging this pull request may close these issues.

1 participant