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

Skip to content
  • Commit fa74331

    Browse files
    [3.14] gh-135805: Document the X option and env var for controlling thread-local bytecode (GH-135868) (#135897)
    gh-135805: Document the X option and env var for controlling thread-local bytecode (GH-135868) Document the X option and env var for controlling thread-local bytecode. (cherry picked from commit fea5ccc) Co-authored-by: mpage <mpage@meta.com>
    1 parent 88c5552 commit fa74331

    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 also 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