Skip to content

Commit 476c333

Browse files
committed
Reorder updates to avoid race conditions
1 parent 8c67abb commit 476c333

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/zend_persist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,8 @@ uint32_t zend_accel_get_class_name_map_ptr(zend_string *type_name)
317317
do {
318318
ret = (uint32_t)(uintptr_t)zend_map_ptr_new();
319319
} while (ret <= 2);
320-
GC_ADD_FLAGS(type_name, IS_STR_CLASS_NAME_MAP_PTR);
321320
GC_SET_REFCOUNT(type_name, ret);
321+
GC_ADD_FLAGS(type_name, IS_STR_CLASS_NAME_MAP_PTR);
322322
return ret;
323323
}
324324

0 commit comments

Comments
 (0)