[php-src] PR #12806: Enhance moving PHP code pages into huge pages
| From: | PeterYang12 | Date: | Tue, 28 Nov 2023 03:01:38 +0000 |
| Subject: | [php-src] PR #12806: Enhance moving PHP code pages into huge pages | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-24350@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/12806
Author: PeterYang12
The former implementation of huge pages for PHP code segments may fail to map in certain scenarios.
For instance, if the initial 'r-x-' segment is not PHP, it will result in a failure to map
into huge pages. Consequently, the optimization for huge pages with PHP code will no longer be
effective.
This patch improves the implementation by accurately matching all 'r-x-' segments until it
locates the PHP code segment. Subsequently, it performs the necessary huge page mapping.
Signed-off-by: PeterYang12 <yuhan.yang@intel.com>
Reviewed-by: chen-hu-97 <hu1.chen@intel.com>