From dfc99d93d5fa0fe841565f6d9ade7ff718f1e2b8 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Mon, 15 Sep 2014 16:52:33 +0800 Subject: [PATCH] Remove redundant codes --- Zend/zend_gc.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Zend/zend_gc.c b/Zend/zend_gc.c index 4b8b81e5a0..b331f979fd 100644 --- a/Zend/zend_gc.c +++ b/Zend/zend_gc.c @@ -186,14 +186,6 @@ ZEND_API void gc_remove_from_buffer(zend_refcounted *ref TSRMLS_DC) { gc_root_buffer *root; - if (UNEXPECTED(/*GC_ADDRESS(GC_INFO(ref)) &&*/ - GC_GET_COLOR(GC_INFO(ref)) == GC_BLACK && - GC_ADDRESS(GC_INFO(ref)) >= GC_G(last_unused) - GC_G(buf))) { - /* The given zval is a garbage that is going to be deleted by - * currently running GC */ - return; - } - root = GC_G(buf) + GC_ADDRESS(GC_INFO(ref)); GC_BENCH_INC(zval_remove_from_buffer); GC_REMOVE_FROM_ROOTS(root); -- 2.50.1