Skip to content

docs: say which threads get 128 KiB of stack on musl Linux - #749

Merged
JuroOravec merged 1 commit into
mainfrom
docs/musl-thread-stack-wording
Nov 18, 2026
Merged

JuroOravec merged 1 commit into
mainfrom
docs/musl-thread-stack-wording

Conversation

@JuroOravec

Copy link
Copy Markdown
Member

What changed

Comments, test docstrings and one design doc paragraph said that a thread on musl Linux gets 128 KiB of stack, in some places "also for Python's own threads". That is true only for a thread that nobody sized, such as one started outside Python. Python's own threads in the official python:*-alpine images get about 1 MiB, because those images build Python with a thread stack size. The text now says that, in the same terms as docs/design/events.md, which already did.

Files:

  • Said the wrong thing about Python's own threads: citry_html_transform/src/stack.rs, citry_vue_compiler/src/stack.rs, citry_core_py/src/native_render/leaf_json.rs, citry_html_transform/tests/attribute_runs.rs, test_native_render_leaf_json.py.
  • Said "the default on musl" for a size that holds only for an unsized thread: citry_native_render/src/plan.rs, docs/design/native_render.md, test_native_render_depth.py, test_template_parser_deep_nesting.py, the citry_template_parser and citry_vue_compiler deep_nesting.rs tests, and one line in the review record for feat(events): run bounded checks on large-stack threads and set the nesting limit to 64 #653.

Why

A reader who sizes a server thread from these comments would believe Alpine Python servers run on 128 KiB threads. The 128 KiB tests themselves are unchanged and still meaningful: they cover the smallest stack a thread can have.

Left as is

  • Released changelog entries and the archived docs_site/versions pages keep their wording.
  • .github/workflows/py--tests.yml mentions a 128 KiB thread but makes no claim about musl, so it is unchanged.

Checks

  • Comments and docs only. git diff shows no change to code, to any string a test reads, or to rendered output.
  • ruff check and ruff format --check pass on the three touched Python files. rustfmt --check passes on the two stack.rs files and vue_compiler/tests/deep_nesting.rs. The other two touched Rust test files already differed from rustfmt's import order before this change and I left them alone.
  • A separate reviewer fact-checked every changed sentence, swept the repository for sibling claims, and ran a prose pass. Its findings are applied: the exact image names, shorter sentences, and the review-record line.

Versioning check

Nothing the 1.x promise covers changes, no data format changes, and no changelog entry is needed because no user-visible behavior changes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KUhrHXH1mNfRCnPcsQt7ED

Comments, test docstrings and a design doc paragraph said every thread
on musl Linux gets 128 KiB, also Python's own. That holds for a thread
that nobody sized, such as one started outside Python. Python's own
threads in the official python:*-alpine images get about 1 MiB, because
those images build Python with a thread stack size. The text now says
that, in the same terms as docs/design/events.md.

Comments and docs only: no code, test input or output changes.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KUhrHXH1mNfRCnPcsQt7ED
@JuroOravec
JuroOravec merged commit 1fe0677 into main Nov 18, 2026
37 checks passed
@JuroOravec
JuroOravec deleted the docs/musl-thread-stack-wording branch November 18, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant