summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2018-01-22 16:14:56 +0300
committerDmitry Stogov <dmitry@zend.com>2018-01-22 16:14:56 +0300
commita89eb2f101bf0ca6f92ee3160fa46de0bd6f31b8 (patch)
tree69cb7411b5c0e0ca4269bb18e516dbd5a8a38005
parenta561d6a6eee5dcf34272f7c9edf390ed25186dad (diff)
downloadphp-git-a89eb2f101bf0ca6f92ee3160fa46de0bd6f31b8.tar.gz
Removed commented unoptimized code
-rw-r--r--Zend/zend_string.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/Zend/zend_string.h b/Zend/zend_string.h
index accd100c6f..0fd06447b7 100644
--- a/Zend/zend_string.h
+++ b/Zend/zend_string.h
@@ -136,14 +136,7 @@ static zend_always_inline zend_string *zend_string_alloc(size_t len, int persist
zend_string *ret = (zend_string *)pemalloc(ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(len)), persistent);
GC_SET_REFCOUNT(ret, 1);
-#if 1
- /* optimized single assignment */
GC_TYPE_INFO(ret) = IS_STRING | ((persistent ? IS_STR_PERSISTENT : 0) << GC_FLAGS_SHIFT);
-#else
- GC_TYPE(ret) = IS_STRING;
- GC_FLAGS(ret) = (persistent ? IS_STR_PERSISTENT : 0);
- GC_INFO(ret) = 0;
-#endif
zend_string_forget_hash_val(ret);
ZSTR_LEN(ret) = len;
return ret;
@@ -154,14 +147,7 @@ static zend_always_inline zend_string *zend_string_safe_alloc(size_t n, size_t m
zend_string *ret = (zend_string *)safe_pemalloc(n, m, ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(l)), persistent);
GC_SET_REFCOUNT(ret, 1);
-#if 1
- /* optimized single assignment */
GC_TYPE_INFO(ret) = IS_STRING | ((persistent ? IS_STR_PERSISTENT : 0) << GC_FLAGS_SHIFT);
-#else
- GC_TYPE(ret) = IS_STRING;
- GC_FLAGS(ret) = (persistent ? IS_STR_PERSISTENT : 0);
- GC_INFO(ret) = 0;
-#endif
zend_string_forget_hash_val(ret);
ZSTR_LEN(ret) = (n * m) + l;
return ret;