mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
The SysV shared memory allocator in OPcache hardcodes a maximum segment size of 32MB (SEG_ALLOC_SIZE_MAX). If the JIT buffer exceeds this, which it does with the default 64MB size, startup will fail with "Insufficient shared memory!". The allocator will now try allocating a contiguous buffer first, and only then use segmentation by searching for continuously smaller powers of 2. Fixes GH-20718 Closes GH-20719
4.7 KiB
4.7 KiB