File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -131,11 +131,11 @@ ZEND_API void ZEND_FASTCALL zend_objects_store_put(zend_object *object)
131
131
/* When in shutdown sequesnce - do not reuse previously freed handles, to make sure
132
132
* the dtors for newly created objects are called in zend_objects_store_call_destructors() loop
133
133
*/
134
- if (!( EG (flags ) & EG_FLAGS_IN_SHUTDOWN ) && EG (objects_store ). free_list_head != -1 ) {
134
+ if (EG (objects_store ). free_list_head != -1 && EXPECTED (!( EG (flags ) & EG_FLAGS_IN_SHUTDOWN )) ) {
135
135
handle = EG (objects_store ).free_list_head ;
136
136
EG (objects_store ).free_list_head = GET_OBJ_BUCKET_NUMBER (EG (objects_store ).object_buckets [handle ]);
137
137
} else {
138
- if (EG (objects_store ).top == EG (objects_store ).size ) {
138
+ if (UNEXPECTED ( EG (objects_store ).top == EG (objects_store ).size ) ) {
139
139
uint32_t new_size = 2 * EG (objects_store ).size ;
140
140
EG (objects_store ).object_buckets = (zend_object * * ) erealloc (EG (objects_store ).object_buckets , new_size * sizeof (zend_object * ));
141
141
/* Assign size after realloc, in case it fails */
You can’t perform that action at this time.
0 commit comments