mirror of
https://github.com/php/php-src.git
synced 2024-11-27 03:44:07 +08:00
Eliminate zend_string_destroy() wrapper in release build
This commit is contained in:
parent
76d8f3923e
commit
617c90bcb9
@ -26,7 +26,11 @@
|
||||
#include "zend_constants.h"
|
||||
#include "zend_list.h"
|
||||
|
||||
#if ZEND_DEBUG
|
||||
static void ZEND_FASTCALL zend_string_destroy(zend_string *str);
|
||||
#else
|
||||
# define zend_string_destroy _efree
|
||||
#endif
|
||||
static void ZEND_FASTCALL zend_reference_destroy(zend_reference *ref);
|
||||
static void ZEND_FASTCALL zend_empty_destroy(zend_reference *ref);
|
||||
|
||||
@ -53,6 +57,7 @@ ZEND_API void ZEND_FASTCALL rc_dtor_func(zend_refcounted *p)
|
||||
zend_rc_dtor_func[GC_TYPE(p)](p);
|
||||
}
|
||||
|
||||
#if ZEND_DEBUG
|
||||
static void ZEND_FASTCALL zend_string_destroy(zend_string *str)
|
||||
{
|
||||
CHECK_ZVAL_STRING(str);
|
||||
@ -61,6 +66,7 @@ static void ZEND_FASTCALL zend_string_destroy(zend_string *str)
|
||||
ZEND_ASSERT(!(GC_FLAGS(str) & IS_STR_PERSISTENT));
|
||||
efree(str);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void ZEND_FASTCALL zend_reference_destroy(zend_reference *ref)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user