gh-118518: Rename PYTHONPERFJITSUPPORT and -X perfjit with underscores (#118693)

This commit is contained in:
Hugo van Kemenade 2024-05-07 13:47:21 +02:00 committed by GitHub
parent 48e52fe2c9
commit 04859228aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 20 additions and 20 deletions

View file

@ -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;
}

View file

@ -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) {