Skip to content

Commit 98e3a70

Browse files
committed
Test
1 parent e69811d commit 98e3a70

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Zend/zend_gc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2049,6 +2049,7 @@ ZEND_API int zend_gc_collect_cycles(void)
20492049
GC_ADDREF(obj);
20502050
obj->handlers->free_obj(obj);
20512051
GC_DELREF(obj);
2052+
printf("Invoking free on %p inside GC\n", obj);
20522053
}
20532054

20542055
ZEND_OBJECTS_STORE_ADD_TO_FREE_LIST(obj->handle);

Zend/zend_objects_API.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ ZEND_API void ZEND_FASTCALL zend_objects_store_free_object_storage(zend_objects_
136136
GC_ADD_FLAGS(obj, IS_OBJ_FREE_CALLED);
137137
GC_ADDREF(obj);
138138
obj->handlers->free_obj(obj);
139+
printf("Invoking free on %p\n", obj);
139140
}
140141
}
141142
} while (obj_ptr != end);

0 commit comments

Comments
 (0)