com php-src: Mark all strings stored in SHM as IS_INTERNED to avoid refcounting: ext/opcache/zend_persist.c

From: Date: Tue, 06 May 2014 08:41:27 +0000
Subject: com php-src: Mark all strings stored in SHM as IS_INTERNED to avoid refcounting: ext/opcache/zend_persist.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-78118@lists.php.net to get a copy of this message
Commit: 0ea615fd10f11aad3ce76f4fc0de2ff41cfa64cf Author: Dmitry Stogov <dmitry@zend.com> Tue, 6 May 2014 12:41:27 +0400 Parents: 4187be99fe1cfd6c66f30f2c23bf1ba2c2f425e1 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0ea615fd10f11aad3ce76f4fc0de2ff41cfa64cf Log: Mark all strings stored in SHM as IS_INTERNED to avoid refcounting Changed paths: M ext/opcache/zend_persist.c Diff: diff --git a/ext/opcache/zend_persist.c b/ext/opcache/zend_persist.c index ca3c188..33a99ee 100644 --- a/ext/opcache/zend_persist.c +++ b/ext/opcache/zend_persist.c @@ -43,6 +43,7 @@ new_str = _zend_shared_memdup((void*)str, _STR_HEADER_SIZE + (str)->len + 1, 0 TSRMLS_CC); \ STR_RELEASE(str); \ str = new_str; \ + GC_FLAGS(str) = IS_STR_INTERNED | IS_STR_PERMANENT; \ } \ } while (0) # define zend_accel_memdup_string(str) \

« previous php.cvs (#78118) next »