[Buildroot] [PATCH 3/3] package/php: enable opcache jit

Pascal de Bruijn p.debruijn at unilogic.nl
Thu Aug 5 13:53:21 UTC 2021


Hey,
Do you have a justification as to why things have changed since commit
469c11c516959375f6caddde178adbdcdc5d9887, which disabled Opcache JIT
support ?
No not really... I've not found a case where JIT does not work (when properly enabled in php.ini), maybe @aduskett could elaborate...

Opcache (with or without JIT) was completely broken both in buildroot for both 7.4.x and 8.0.x due to the shm_unlink issue with librt. The main issue is that this fails at runtime, so you can have opcache compile just fine, but non-functional when enabled in php.ini...

I've tested the following with all three my patches:

    php 7.4.20 (2021.02.x branch without JIT) on amd64
    php 8.0.9 (master branch with JIT) on amd64
    php 8.0.9 (master branch without JIT) on arm

on non-x86 JIT is automatically disabled (even if built with --enable-opcache-jit), as it seems to be supported on x86 exclusively for now, but that may change in future versions of PHP. PHP versions before 8, don't have the JIT at all.

Therefore I would recommend cherrypicking ed355dec (PATCH 2/3), to the 2021.02.x branch.

Regards,
Pascal de Bruijn

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20210805/c2dab1f6/attachment.html>


More information about the buildroot mailing list