[php-src] PR #20719: Increase SEG_ALLOC_SIZE_MAX to 64MB to support OPcache JIT on Solaris

From: Date: Tue, 16 Dec 2025 13:49:28 +0000
Subject: [php-src] PR #20719: Increase SEG_ALLOC_SIZE_MAX to 64MB to support OPcache JIT on Solaris
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-34298@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/20719 Author: psumbera 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.

« previous php.git-pulls (#34298) next »