Repository navigation
docs: say which threads get 128 KiB of stack on musl Linux - #749
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:*-alpineimages get about 1 MiB, because those images build Python with a thread stack size. The text now says that, in the same terms asdocs/design/events.md, which already did.Files:
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.citry_native_render/src/plan.rs,docs/design/native_render.md,test_native_render_depth.py,test_template_parser_deep_nesting.py, thecitry_template_parserandcitry_vue_compilerdeep_nesting.rstests, 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
docs_site/versionspages keep their wording..github/workflows/py--tests.ymlmentions a 128 KiB thread but makes no claim about musl, so it is unchanged.Checks
git diffshows no change to code, to any string a test reads, or to rendered output.ruff checkandruff format --checkpass on the three touched Python files.rustfmt --checkpasses on the twostack.rsfiles andvue_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.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