[php-src] PR #19379: Fix opcache.huge_code_pages

From: Date: Tue, 05 Aug 2025 16:58:32 +0000
Subject: [php-src] PR #19379: Fix opcache.huge_code_pages
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-32800@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/19379 Author: arnaud-lb Building opcache into the main binary breaks opcache.huge_code_pages, as we were relying on the fact that accel_remap_huge_pages() is not in the same mapping as the main text segment. This is a possible fix, using mremap() to replace the text segment "without downtime". A similar approach is used in https://chromium.googlesource.com/chromium/src/+/66.0.3359.158/chromeos/hugepage_text/hugepage_text.cc#120 and https://github.com/facebook/hhvm/blob/37915e288b70a47219e17956ca7cc019e031a582/hphp/runtime/base/program-functions.cpp#L866.

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