]> granicus.if.org Git - php/commitdiff
Rename opcache.jit_max_loops_unroll to opcache.jit_max_loop_unrolls
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 2 Nov 2020 11:23:28 +0000 (12:23 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 2 Nov 2020 11:25:21 +0000 (12:25 +0100)
ext/opcache/jit/zend_jit.h
ext/opcache/jit/zend_jit_vm_helpers.c
ext/opcache/zend_accelerator_module.c

index 7ffc80ef36f30c5bf4e65bdaf33b83a26df5f82a..ed0dc29a6c82b0931f73c49b54b6c6ad13d21556 100644 (file)
@@ -101,7 +101,7 @@ typedef struct _zend_jit_globals {
        zend_long   hot_side_exit;         /* number of exits before taking side trace */
        zend_long   blacklist_root_trace;  /* number of attempts to JIT a root trace before blacklist it */
        zend_long   blacklist_side_trace;  /* number of attempts to JIT a side trace before blacklist it */
-       zend_long   max_loops_unroll;      /* max number of unrolled loops */
+       zend_long   max_loop_unrolls;      /* max number of unrolled loops */
        zend_long   max_recursive_calls;   /* max number of recursive inlined call unrolls */
        zend_long   max_recursive_returns; /* max number of recursive inlined return unrolls */
        zend_long   max_polymorphic_calls; /* max number of inlined polymorphic calls */
index 48df7ff10809263b0a446569c2a12db87438825c..6296532fdbfbaecacfb9f26f3c083bd901c9038b 100644 (file)
@@ -1022,7 +1022,7 @@ zend_jit_trace_stop ZEND_FASTCALL zend_jit_trace_execute(zend_execute_data *ex,
                                        stop = ZEND_JIT_TRACE_STOP_LOOP;
                                        ret_level = 0;
                                        break;
-                               } else if (loop_unroll_limit < JIT_G(max_loops_unroll)) {
+                               } else if (loop_unroll_limit < JIT_G(max_loop_unrolls)) {
                                        last_loop = idx;
                                        last_loop_opline = opline;
                                        last_loop_level = level;
index 4258ddd6864d2f0403b005f6aacb9b60e8bf4d7a..d68ab9531ad21bac194a363a197037f69f4938ab 100644 (file)
@@ -301,7 +301,7 @@ ZEND_INI_BEGIN()
        STD_PHP_INI_ENTRY("opcache.jit_hot_side_exit"             , "8",                          PHP_INI_ALL,    OnUpdateCounter,  hot_side_exit,         zend_jit_globals, jit_globals)
        STD_PHP_INI_ENTRY("opcache.jit_blacklist_root_trace"      , "16",                         PHP_INI_ALL,    OnUpdateCounter,  blacklist_root_trace,  zend_jit_globals, jit_globals)
        STD_PHP_INI_ENTRY("opcache.jit_blacklist_side_trace"      , "8",                          PHP_INI_ALL,    OnUpdateCounter,  blacklist_side_trace,  zend_jit_globals, jit_globals)
-       STD_PHP_INI_ENTRY("opcache.jit_max_loops_unroll"          , "8",                          PHP_INI_ALL,    OnUpdateUnrollL,  max_loops_unroll,      zend_jit_globals, jit_globals)
+       STD_PHP_INI_ENTRY("opcache.jit_max_loop_unrolls"          , "8",                          PHP_INI_ALL,    OnUpdateUnrollL,  max_loop_unrolls,      zend_jit_globals, jit_globals)
        STD_PHP_INI_ENTRY("opcache.jit_max_recursive_calls"       , "2",                          PHP_INI_ALL,    OnUpdateUnrollC,  max_recursive_calls,   zend_jit_globals, jit_globals)
        STD_PHP_INI_ENTRY("opcache.jit_max_recursive_returns"     , "2",                          PHP_INI_ALL,    OnUpdateUnrollR,  max_recursive_returns, zend_jit_globals, jit_globals)
        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)
        add_assoc_long(&directives,   "opcache.jit_hot_return", JIT_G(hot_return));
        add_assoc_long(&directives,   "opcache.jit_hot_side_exit", JIT_G(hot_side_exit));
        add_assoc_long(&directives,   "opcache.jit_max_exit_counters", JIT_G(max_exit_counters));
-       add_assoc_long(&directives,   "opcache.jit_max_loops_unroll", JIT_G(max_loops_unroll));
+       add_assoc_long(&directives,   "opcache.jit_max_loop_unrolls", JIT_G(max_loop_unrolls));
        add_assoc_long(&directives,   "opcache.jit_max_polymorphic_calls", JIT_G(max_polymorphic_calls));
        add_assoc_long(&directives,   "opcache.jit_max_recursive_calls", JIT_G(max_recursive_calls));
        add_assoc_long(&directives,   "opcache.jit_max_recursive_returns", JIT_G(max_recursive_returns));