Skip to content

Commit 0571f09

Browse files
committed
Rename opcache.jit_max_loops_unroll to opcache.jit_max_loop_unrolls
1 parent 6fc2cab commit 0571f09

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ext/opcache/jit/zend_jit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ typedef struct _zend_jit_globals {
101101
zend_long hot_side_exit; /* number of exits before taking side trace */
102102
zend_long blacklist_root_trace; /* number of attempts to JIT a root trace before blacklist it */
103103
zend_long blacklist_side_trace; /* number of attempts to JIT a side trace before blacklist it */
104-
zend_long max_loops_unroll; /* max number of unrolled loops */
104+
zend_long max_loop_unrolls; /* max number of unrolled loops */
105105
zend_long max_recursive_calls; /* max number of recursive inlined call unrolls */
106106
zend_long max_recursive_returns; /* max number of recursive inlined return unrolls */
107107
zend_long max_polymorphic_calls; /* max number of inlined polymorphic calls */

ext/opcache/jit/zend_jit_vm_helpers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ zend_jit_trace_stop ZEND_FASTCALL zend_jit_trace_execute(zend_execute_data *ex,
10221022
stop = ZEND_JIT_TRACE_STOP_LOOP;
10231023
ret_level = 0;
10241024
break;
1025-
} else if (loop_unroll_limit < JIT_G(max_loops_unroll)) {
1025+
} else if (loop_unroll_limit < JIT_G(max_loop_unrolls)) {
10261026
last_loop = idx;
10271027
last_loop_opline = opline;
10281028
last_loop_level = level;

ext/opcache/zend_accelerator_module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ ZEND_INI_BEGIN()
301301
STD_PHP_INI_ENTRY("opcache.jit_hot_side_exit" , "8", PHP_INI_ALL, OnUpdateCounter, hot_side_exit, zend_jit_globals, jit_globals)
302302
STD_PHP_INI_ENTRY("opcache.jit_blacklist_root_trace" , "16", PHP_INI_ALL, OnUpdateCounter, blacklist_root_trace, zend_jit_globals, jit_globals)
303303
STD_PHP_INI_ENTRY("opcache.jit_blacklist_side_trace" , "8", PHP_INI_ALL, OnUpdateCounter, blacklist_side_trace, zend_jit_globals, jit_globals)
304-
STD_PHP_INI_ENTRY("opcache.jit_max_loops_unroll" , "8", PHP_INI_ALL, OnUpdateUnrollL, max_loops_unroll, zend_jit_globals, jit_globals)
304+
STD_PHP_INI_ENTRY("opcache.jit_max_loop_unrolls" , "8", PHP_INI_ALL, OnUpdateUnrollL, max_loop_unrolls, zend_jit_globals, jit_globals)
305305
STD_PHP_INI_ENTRY("opcache.jit_max_recursive_calls" , "2", PHP_INI_ALL, OnUpdateUnrollC, max_recursive_calls, zend_jit_globals, jit_globals)
306306
STD_PHP_INI_ENTRY("opcache.jit_max_recursive_returns" , "2", PHP_INI_ALL, OnUpdateUnrollR, max_recursive_returns, zend_jit_globals, jit_globals)
307307
STD_PHP_INI_ENTRY("opcache.jit_max_polymorphic_calls" , "2", PHP_INI_ALL, OnUpdateLong, max_polymorphic_calls, zend_jit_globals, jit_globals)
@@ -785,7 +785,7 @@ ZEND_FUNCTION(opcache_get_configuration)
785785
add_assoc_long(&directives, "opcache.jit_hot_return", JIT_G(hot_return));
786786
add_assoc_long(&directives, "opcache.jit_hot_side_exit", JIT_G(hot_side_exit));
787787
add_assoc_long(&directives, "opcache.jit_max_exit_counters", JIT_G(max_exit_counters));
788-
add_assoc_long(&directives, "opcache.jit_max_loops_unroll", JIT_G(max_loops_unroll));
788+
add_assoc_long(&directives, "opcache.jit_max_loop_unrolls", JIT_G(max_loop_unrolls));
789789
add_assoc_long(&directives, "opcache.jit_max_polymorphic_calls", JIT_G(max_polymorphic_calls));
790790
add_assoc_long(&directives, "opcache.jit_max_recursive_calls", JIT_G(max_recursive_calls));
791791
add_assoc_long(&directives, "opcache.jit_max_recursive_returns", JIT_G(max_recursive_returns));

0 commit comments

Comments
 (0)