8000 gh-135805: Document the X option and env var for controlling thread-l… · python/cpython@fea5ccc · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit fea5ccc

Browse files
authored
gh-135805: Document the X option and env var for controlling thread-local bytecode (#135868)
Document the X option and env var for controlling thread-local bytecode.
1 parent b3ab94a commit fea5ccc

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Doc/using/cmdline.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,13 @@ Miscellaneous options
669669

670670
.. versionadded:: 3.14
671671

672+
* :samp:`-X tlbc={0,1}` enables (1, the default) or disables (0) thread-local
673+
bytecode in builds configured with :option:`--disable-gil`. When disabled,
674+
this also disables the specializing interpreter. See also
675+
:envvar:`PYTHON_TLBC`.
676+
677+
.. versionadded:: 3.14
678+
672679
It also allows passing arbitrary values and retrieving them through the
673680
:data:`sys._xoptions` dictionary.
674681

@@ -1302,6 +1309,16 @@ conflict.
13021309

13031310
.. versionadded:: 3.13
13041311

1312+
.. envvar:: PYTHON_TLBC
1313+
1314+
If set to ``1`` enables thread-local bytecode. If set to ``0`` thread-local
1315+
bytecode and the specializing interpreter are disabled. Only applies to
1316+
builds configured with :option:`--disable-gil`.
1317+
1318+
See al 576B so the :option:`-X tlbc <-X>` command-line option.
1319+
1320+
.. versionadded:: 3.14
1321+
13051322
Debug-mode variables
13061323
~~~~~~~~~~~~~~~~~~~~
13071324

0 commit comments

Comments
 (0)
0