Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ff21aab

Browse files
Fix heap_slot alignment
1 parent 5e1051d commit ff21aab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎Zend/zend_alloc.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,8 @@ struct _zend_mm_chunk {
378378
uint32_t free_pages; /* number of free pages */
379379
uint32_t free_tail; /* number of free pages at the end of chunk */
380380
uint32_t num;
381-
char reserve[64 - (sizeof(void*) * 3 + sizeof(uint32_t) * 3)];
381+
/* align heap_slot to cache line boundary (assumed to be 64 bytes) */
382+
char reserve[64 - (sizeof(void*) * 4 + sizeof(uint32_t) * 3)];
382383
zend_mm_heap heap_slot; /* used only in main chunk */
383384
#if ZEND_MM_HEAP_PROTECTION
384385
zend_mm_zone *zone;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /