Commit d2ca471
committed
Increase SEG_ALLOC_SIZE_MAX to 64MB to support OPcache JIT on Solaris
The SysV shared memory allocator in OPcache hardcodes a maximum segment
size of 32MB (SEG_ALLOC_SIZE_MAX). With JIT enabled, OPcache reserves
64MB (ZEND_JIT_DEFAULT_BUFFER_SIZE) from the last segment, causing
startup to fail with "Insufficient shared memory!".
This patch increases SEG_ALLOC_SIZE_MAX to 64MB so the reserved JIT buffer
fits in a single segment. Behavior on other platforms using mmap remains
unaffected.
Fixes #20718.1 parent 9b33be2 commit d2ca471
File tree
1 file changed
+1
-1
lines changed- ext/opcache
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments