com php-src: Remove redundant codes: Zend/zend_gc.c

From: Date: Mon, 15 Sep 2014 08:52:33 +0000
Subject: com php-src: Remove redundant codes: Zend/zend_gc.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-81630@lists.php.net to get a copy of this message
Commit: dfc99d93d5fa0fe841565f6d9ade7ff718f1e2b8 Author: Xinchen Hui <laruence@php.net> Mon, 15 Sep 2014 16:52:33 +0800 Parents: feba63bfc17cf173a548dbb894b5cc03f1470cf0 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=dfc99d93d5fa0fe841565f6d9ade7ff718f1e2b8 Log: Remove redundant codes Changed paths: M Zend/zend_gc.c Diff: diff --git a/Zend/zend_gc.c b/Zend/zend_gc.c index 4b8b81e..b331f97 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);

« previous php.cvs (#81630) next »