diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-05-06 12:41:27 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-05-06 12:41:27 +0400 |
commit | 0ea615fd10f11aad3ce76f4fc0de2ff41cfa64cf (patch) | |
tree | 31bef8ecd5a343e62bbc41cbbcdcbeed8ba07239 /ext/opcache | |
parent | 4187be99fe1cfd6c66f30f2c23bf1ba2c2f425e1 (diff) | |
download | php-git-0ea615fd10f11aad3ce76f4fc0de2ff41cfa64cf.tar.gz |
Mark all strings stored in SHM as IS_INTERNED to avoid refcounting
Diffstat (limited to 'ext/opcache')
-rw-r--r-- | ext/opcache/zend_persist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/opcache/zend_persist.c b/ext/opcache/zend_persist.c index ca3c1882d9..33a99ee9c0 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) \ |