Skip to content

Commit 265a875

Browse files
committed
Fix
1 parent 8cecb7e commit 265a875

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

Zend/zend_alloc.c

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2731,32 +2731,6 @@ ZEND_API void zend_mm_shutdown(zend_mm_heap *heap, bool full, bool silent)
27312731
/* PUBLIC API */
27322732
/**************/
27332733

2734-
ZEND_API void ZEND_FASTCALL _zend_mm_validate(zend_mm_heap *heap)
2735-
{
2736-
/*for (int i = 0; i < 30; i++) {
2737-
zend_mm_free_slot *slot = heap->free_slot[i];
2738-
if (slot != NULL) {
2739-
zend_mm_get_next_free_slot(heap, i, slot);
2740-
}
2741-
}*/
2742-
return;
2743-
zend_mm_gc(heap);
2744-
zend_mm_gc(heap);
2745-
}
2746-
2747-
2748-
ZEND_API void ZEND_FASTCALL zend_mm_validate_fast(zend_mm_heap *heap)
2749-
{
2750-
ZEND_MM_UNPOISON_HEAP(heap);
2751-
for (int i = 0; i < 30; i++) {
2752-
zend_mm_free_slot *slot = heap->free_slot[i];
2753-
if (slot != NULL) {
2754-
zend_mm_get_next_free_slot(heap, i, slot);
2755-
}
2756-
}
2757-
ZEND_MM_POISON_HEAP(heap);
2758-
}
2759-
27602734
ZEND_API void* ZEND_FASTCALL _zend_mm_alloc(zend_mm_heap *heap, size_t size ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)
27612735
{
27622736
ZEND_MM_UNPOISON_HEAP(heap);

0 commit comments

Comments
 (0)