[php-src] PR #14650: Compute the size of pages before allocating memory
| From: | jvoisin | Date: | Mon, 24 Jun 2024 14:00:00 +0000 |
| Subject: | [php-src] PR #14650: Compute the size of pages before allocating memory | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-26792@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/14650
Author: jvoisin
start_memory_manager() calls zend_mm_init() via
alloc_globals_ctor() before setting REAL_PAGE_SIZE to the right value.
Moving the REAL_PAGE_SIZE setting block before the call to
alloc_globals_ctor() makes the allocator behave properly on systems with a page size
different than 4k.
Suggested-by: arnaud-lb