mirror of
https://github.com/python/cpython.git
synced 2025-07-16 07:45:20 +00:00
gh-118518: Rename PYTHONPERFJITSUPPORT
and -X perfjit
with underscores (#118693)
This commit is contained in:
parent
48e52fe2c9
commit
04859228aa
8 changed files with 20 additions and 20 deletions
|
@ -1703,7 +1703,7 @@ config_init_perf_profiling(PyConfig *config)
|
|||
if (xoption) {
|
||||
config->perf_profiling = 1;
|
||||
}
|
||||
env = config_get_env(config, "PYTHONPERFJITSUPPORT");
|
||||
env = config_get_env(config, "PYTHON_PERF_JIT_SUPPORT");
|
||||
if (env) {
|
||||
if (_Py_str_to_int(env, &active) != 0) {
|
||||
active = 0;
|
||||
|
@ -1712,7 +1712,7 @@ config_init_perf_profiling(PyConfig *config)
|
|||
config->perf_profiling = 2;
|
||||
}
|
||||
}
|
||||
xoption = config_get_xoption(config, L"perfjit");
|
||||
xoption = config_get_xoption(config, L"perf_jit");
|
||||
if (xoption) {
|
||||
config->perf_profiling = 2;
|
||||
}
|
||||
|
|
|
@ -2294,7 +2294,7 @@ sys_activate_stack_trampoline_impl(PyObject *module, const char *backend)
|
|||
return NULL;
|
||||
}
|
||||
}
|
||||
else if (strcmp(backend, "perfjit") == 0) {
|
||||
else if (strcmp(backend, "perf_jit") == 0) {
|
||||
_PyPerf_Callbacks cur_cb;
|
||||
_PyPerfTrampoline_GetCallbacks(&cur_cb);
|
||||
if (cur_cb.write_state != _Py_perfmap_jit_callbacks.write_state) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue