Skip to content

Remove zend_jit_vm_kind #19299

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Remove zend_jit_vm_kind #19299

wants to merge 1 commit into from

Conversation

arnaud-lb
Copy link
Member

JIT used to not have a compile-time dependency on VM kind, such that a single build of opcache could work with different VM kinds at runtime. This has been broken over time and would be difficult to restore. Additionally, as opcache is now built-in, this would not be useful anymore.

Remove the zend_jit_vm_kind variable as suggested in #19006 (comment).

JIT used to not have a compile-time dependency on VM kind, such that a single
build of opcache could work with VM kinds at runtime. This has been broken
over time and would be difficult to restore. Additionally, as opcache is now
built-in, this would not be useful anymore.

Remove the zend_jit_vm_kind variable.
Comment on lines +3709 to +3711
#if ZEND_VM_KIND != ZEND_VM_KIND_CALL && ZEND_VM_KIND != ZEND_VM_KIND_HYBRID
# error JIT is compatible only with CALL and HYBRID VM
#endif
Copy link
Member Author

Choose a reason for hiding this comment

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

This could be a configure check, but it's difficult to determine the VM kind in configure. Also, triggering this error is only possible by manually re-generating the VM with zend_vm_gen.php --with-vm-kind=..., so it seems fine.

@arnaud-lb arnaud-lb marked this pull request as ready for review July 30, 2025 08:08
@arnaud-lb arnaud-lb requested a review from dstogov as a code owner July 30, 2025 08:08
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.

2 participants