From: Xinchen Hui Date: Mon, 15 Sep 2014 08:52:33 +0000 (+0800) Subject: Remove redundant codes X-Git-Tag: PRE_NATIVE_TLS_MERGE~158^2~85^2~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dfc99d93d5fa0fe841565f6d9ade7ff718f1e2b8;p=php Remove redundant codes --- 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);