Commit e3c9f5a
authored
Compute the size of pages before allocating memory (#14650)
`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-lb1 parent 3da6377 commit e3c9f5a
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3109 | 3109 | | |
3110 | 3110 | | |
3111 | 3111 | | |
3112 | | - | |
3113 | | - | |
3114 | | - | |
3115 | | - | |
3116 | | - | |
3117 | 3112 | | |
3118 | 3113 | | |
3119 | 3114 | | |
3120 | 3115 | | |
3121 | 3116 | | |
3122 | 3117 | | |
3123 | 3118 | | |
| 3119 | + | |
| 3120 | + | |
| 3121 | + | |
| 3122 | + | |
| 3123 | + | |
3124 | 3124 | | |
3125 | 3125 | | |
3126 | 3126 | | |
| |||
0 commit comments