mirror of
https://github.com/php/php-src.git
synced 2026-10-28 17:56:50 +08:00
Fix merge
This commit is contained in:
1 file changed
-12
@@ -23,7 +23,6 @@
|
||||
|
||||
#include "zend_portability.h"
|
||||
#include "zend_long.h"
|
||||
#include "zend_atomic.h"
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -961,17 +960,6 @@ static zend_always_inline uint32_t zend_gc_delref_ex(zend_refcounted_h *p, uint3
|
||||
|
||||
#define OBJ_EXTRA_FLAGS(obj) ((obj)->extra_flags)
|
||||
|
||||
static zend_always_inline uint32_t zend_atomic_load_acquire_32(const uint32_t *ptr)
|
||||
{
|
||||
#if defined(__GNUC__) || defined(__clang__) || defined(HAVE_GNUC_ATOMICS)
|
||||
return __atomic_load_n(ptr, __ATOMIC_ACQUIRE);
|
||||
#else
|
||||
uint32_t val = *(const volatile uint32_t *)ptr;
|
||||
ZEND_ATOMIC_FENCE_ACQUIRE();
|
||||
return val;
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Fast class cache */
|
||||
static zend_always_inline bool zstr_has_ce_cache(const zend_string *s)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user