Skip to content

Commit 7959fa8

Browse files
committed
remove ZEND_SIMPLE_INTERRUPT_CHECK
1 parent cd7cf53 commit 7959fa8

File tree

3 files changed

+0
-59
lines changed

3 files changed

+0
-59
lines changed

Zend/zend_execute.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4056,16 +4056,6 @@ ZEND_API void ZEND_FASTCALL zend_free_compiled_variables(zend_execute_data *exec
40564056
}
40574057
/* }}} */
40584058

4059-
#define ZEND_SIMPLE_INTERRUPT_CHECK(execute_data) do { \
4060-
if (UNEXPECTED(zend_atomic_bool_load_ex(&EG(vm_interrupt)))) { \
4061-
if (zend_atomic_bool_load_ex(&EG(timed_out))) { \
4062-
zend_timeout(); \
4063-
} else if (zend_interrupt_function) { \
4064-
zend_interrupt_function(execute_data); \
4065-
} \
4066-
} \
4067-
} while (0)
4068-
40694059
#define ZEND_VM_INTERRUPT_CHECK() do { \
40704060
if (UNEXPECTED(zend_atomic_bool_load_ex(&EG(vm_interrupt)))) { \
40714061
ZEND_VM_INTERRUPT(); \

Zend/zend_vm_def.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4074,7 +4074,6 @@ ZEND_VM_HOT_HANDLER(129, ZEND_DO_ICALL, ANY, ANY, SPEC(RETVAL,OBSERVER))
40744074
}
40754075
#endif
40764076
ZEND_OBSERVER_FCALL_END(call, EG(exception) ? NULL : ret);
4077-
ZEND_SIMPLE_INTERRUPT_CHECK(call);
40784077

40794078
EG(current_execute_data) = execute_data;
40804079
zend_vm_stack_free_args(call);
@@ -4198,7 +4197,6 @@ ZEND_VM_HOT_HANDLER(131, ZEND_DO_FCALL_BY_NAME, ANY, ANY, SPEC(RETVAL,OBSERVER))
41984197
}
41994198
#endif
42004199
ZEND_OBSERVER_FCALL_END(call, EG(exception) ? NULL : ret);
4201-
ZEND_SIMPLE_INTERRUPT_CHECK(call);
42024200

42034201
EG(current_execute_data) = execute_data;
42044202

@@ -4320,7 +4318,6 @@ ZEND_VM_HOT_HANDLER(60, ZEND_DO_FCALL, ANY, ANY, SPEC(RETVAL,OBSERVER))
43204318
}
43214319
#endif
43224320
ZEND_OBSERVER_FCALL_END(call, EG(exception) ? NULL : ret);
4323-
ZEND_SIMPLE_INTERRUPT_CHECK(call);
43244321

43254322
EG(current_execute_data) = execute_data;
43264323

@@ -4504,7 +4501,6 @@ ZEND_VM_INLINE_HANDLER(62, ZEND_RETURN, CONST|TMP|VAR|CV, ANY, SPEC(OBSERVER))
45044501
}
45054502
ZEND_OBSERVER_SAVE_OPLINE();
45064503
ZEND_OBSERVER_FCALL_END(execute_data, return_value);
4507-
ZEND_SIMPLE_INTERRUPT_CHECK(execute_data);
45084504
ZEND_OBSERVER_FREE_RETVAL();
45094505
ZEND_VM_DISPATCH_TO_HELPER(zend_leave_helper);
45104506
}
@@ -4571,7 +4567,6 @@ ZEND_VM_COLD_CONST_HANDLER(111, ZEND_RETURN_BY_REF, CONST|TMP|VAR|CV, ANY, SRC,
45714567
} while (0);
45724568

45734569
ZEND_OBSERVER_FCALL_END(execute_data, return_value);
4574-
ZEND_SIMPLE_INTERRUPT_CHECK(execute_data);
45754570
ZEND_OBSERVER_FREE_RETVAL();
45764571
ZEND_VM_DISPATCH_TO_HELPER(zend_leave_helper);
45774572
}
@@ -4691,7 +4686,6 @@ ZEND_VM_HANDLER(161, ZEND_GENERATOR_RETURN, CONST|TMP|VAR|CV, ANY, SPEC(OBSERVER
46914686
}
46924687

46934688
ZEND_OBSERVER_FCALL_END(generator->execute_data, &generator->retval);
4694-
ZEND_SIMPLE_INTERRUPT_CHECK(generator->execute_data);
46954689

46964690
EG(current_execute_data) = EX(prev_execute_data);
46974691

@@ -8986,7 +8980,6 @@ ZEND_VM_HANDLER(158, ZEND_CALL_TRAMPOLINE, ANY, ANY, SPEC(OBSERVER))
89868980
}
89878981
#endif
89888982
ZEND_OBSERVER_FCALL_END(call, EG(exception) ? NULL : ret);
8989-
ZEND_SIMPLE_INTERRUPT_CHECK(call);
89908983

89918984
EG(current_execute_data) = call->prev_execute_data;
89928985

Zend/zend_vm_execute.h

Lines changed: 0 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)