@@ -1045,7 +1045,7 @@ static void zend_mm_change_huge_block_size(zend_mm_heap *heap, void *ptr, size_t
10451045/* Large Runs */
10461046/**************/
10471047
1048- static size_t _zend_mm_gc (zend_mm_heap * heap );
1048+ static size_t zend_mm_gc_real (zend_mm_heap * heap );
10491049
10501050#if ZEND_DEBUG
10511051static void * zend_mm_alloc_pages (zend_mm_heap * heap , uint32_t pages_count , size_t size ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC )
@@ -1184,7 +1184,7 @@ static void *zend_mm_alloc_pages(zend_mm_heap *heap, uint32_t pages_count ZEND_F
11841184 } else {
11851185#if ZEND_MM_LIMIT
11861186 if (UNEXPECTED (ZEND_MM_CHUNK_SIZE > heap -> limit - heap -> real_size )) {
1187- if (_zend_mm_gc (heap )) {
1187+ if (zend_mm_gc_real (heap )) {
11881188 goto get_chunk ;
11891189 } else if (heap -> overflow == 0 ) {
11901190#if ZEND_DEBUG
@@ -1201,7 +1201,7 @@ static void *zend_mm_alloc_pages(zend_mm_heap *heap, uint32_t pages_count ZEND_F
12011201 chunk = (zend_mm_chunk * )zend_mm_chunk_alloc (heap , ZEND_MM_CHUNK_SIZE , ZEND_MM_CHUNK_SIZE );
12021202 if (UNEXPECTED (chunk == NULL )) {
12031203 /* insufficient memory */
1204- if (_zend_mm_gc (heap ) &&
1204+ if (zend_mm_gc_real (heap ) &&
12051205 (chunk = (zend_mm_chunk * )zend_mm_chunk_alloc (heap , ZEND_MM_CHUNK_SIZE , ZEND_MM_CHUNK_SIZE )) != NULL ) {
12061206 /* pass */
12071207 } else {
@@ -1877,7 +1877,7 @@ static zend_never_inline void *zend_mm_realloc_huge(zend_mm_heap *heap, void *pt
18771877 } else /* if (new_size > old_size) */ {
18781878#if ZEND_MM_LIMIT
18791879 if (UNEXPECTED (new_size - old_size > heap -> limit - heap -> real_size )) {
1880- if (_zend_mm_gc (heap ) && new_size - old_size <= heap -> limit - heap -> real_size ) {
1880+ if (zend_mm_gc_real (heap ) && new_size - old_size <= heap -> limit - heap -> real_size ) {
18811881 /* pass */
18821882 } else if (heap -> overflow == 0 ) {
18831883#if ZEND_DEBUG
@@ -2220,7 +2220,7 @@ static void *zend_mm_alloc_huge(zend_mm_heap *heap, size_t size ZEND_FILE_LINE_D
22202220
22212221#if ZEND_MM_LIMIT
22222222 if (UNEXPECTED (new_size > heap -> limit - heap -> real_size )) {
2223- if (_zend_mm_gc (heap ) && new_size <= heap -> limit - heap -> real_size ) {
2223+ if (zend_mm_gc_real (heap ) && new_size <= heap -> limit - heap -> real_size ) {
22242224 /* pass */
22252225 } else if (heap -> overflow == 0 ) {
22262226#if ZEND_DEBUG
@@ -2235,7 +2235,7 @@ static void *zend_mm_alloc_huge(zend_mm_heap *heap, size_t size ZEND_FILE_LINE_D
22352235 ptr = zend_mm_chunk_alloc (heap , new_size , ZEND_MM_CHUNK_SIZE );
22362236 if (UNEXPECTED (ptr == NULL )) {
22372237 /* insufficient memory */
2238- if (_zend_mm_gc (heap ) &&
2238+ if (zend_mm_gc_real (heap ) &&
22392239 (ptr = zend_mm_chunk_alloc (heap , new_size , ZEND_MM_CHUNK_SIZE )) != NULL ) {
22402240 /* pass */
22412241 } else {
@@ -2359,7 +2359,7 @@ static zend_mm_heap *zend_mm_init(void)
23592359 return heap ;
23602360}
23612361
2362- static size_t _zend_mm_gc (zend_mm_heap * heap )
2362+ static size_t zend_mm_gc_real (zend_mm_heap * heap )
23632363{
23642364 zend_mm_free_slot * p , * q ;
23652365 zend_mm_chunk * chunk ;
@@ -2505,7 +2505,7 @@ static size_t _zend_mm_gc(zend_mm_heap *heap)
25052505ZEND_API size_t zend_mm_gc (zend_mm_heap * heap )
25062506{
25072507 ZEND_MM_UNPOISON_HEAP (heap );
2508- size_t ret = _zend_mm_gc (heap );
2508+ size_t ret = zend_mm_gc_real (heap );
25092509 ZEND_MM_POISON_HEAP (heap );
25102510 return ret ;
25112511}
@@ -3615,7 +3615,7 @@ static size_t poison_gc(void)
36153615 _zend_mm_get_custom_handlers_ex (heap , & _malloc , & _free , & _realloc , & _gc , & _shutdown );
36163616 _zend_mm_set_custom_handlers_ex (heap , NULL , NULL , NULL , NULL , NULL );
36173617
3618- size_t collected = _zend_mm_gc (heap );
3618+ size_t collected = zend_mm_gc_real (heap );
36193619
36203620 _zend_mm_set_custom_handlers_ex (heap , _malloc , _free , _realloc , _gc , _shutdown );
36213621
0 commit comments