summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorHugo van Kemenade <1324225+hugovk@users.noreply.github.com>2024-05-07 11:47:21 (GMT)
committerGitHub <noreply@github.com>2024-05-07 11:47:21 (GMT)
commit04859228aa11756558807bcf99ccff78e4e8c56d (patch)
tree050ba0bb7abecaa1b007267a774e07bcfa1f1f99 /Python
parent48e52fe2c9a7b33671f6b5d1420a71a6f31ad64b (diff)
downloadcpython-04859228aa11756558807bcf99ccff78e4e8c56d.zip
cpython-04859228aa11756558807bcf99ccff78e4e8c56d.tar.gz
cpython-04859228aa11756558807bcf99ccff78e4e8c56d.tar.bz2
gh-118518: Rename `PYTHONPERFJITSUPPORT` and `-X perfjit` with underscores (#118693)
Diffstat (limited to 'Python')
-rw-r--r--Python/initconfig.c4
-rw-r--r--Python/sysmodule.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/Python/initconfig.c b/Python/initconfig.c
index 0e53d60..a28c08c 100644
--- a/Python/initconfig.c
+++ b/Python/initconfig.c
@@ -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;
}
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 601d8ae..4da13e4 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -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) {