Skip to content

Remove unused field from pthread struct. NFC#26900

Merged
sbc100 merged 2 commits intoemscripten-core:mainfrom
kleisauke:remove-unused-field-from-pthread
May 10, 2026
Merged

Remove unused field from pthread struct. NFC#26900
sbc100 merged 2 commits intoemscripten-core:mainfrom
kleisauke:remove-unused-field-from-pthread

Conversation

@kleisauke
Copy link
Copy Markdown
Collaborator

Split out from #26857.

kleisauke added 2 commits May 9, 2026 10:25
This is an automatic change generated by tools/maint/rebaseline_tests.py.

The following (7) test expectation files were updated by
running the tests with `--rebaseline`:

```
codesize/test_codesize_cxx_ctors1.json: 151887 => 151887 [+0 bytes / +0.00%]
codesize/test_codesize_cxx_except_wasm.json: 167018 => 167018 [+0 bytes / +0.00%]
codesize/test_codesize_cxx_except_wasm_legacy.json: 164898 => 164898 [+0 bytes / +0.00%]
codesize/test_codesize_cxx_noexcept.json: 153917 => 153917 [+0 bytes / +0.00%]
codesize/test_codesize_hello_dylink.json: 43922 => 43922 [+0 bytes / +0.00%]
codesize/test_codesize_minimal_pthreads.json: 26419 => 26419 [+0 bytes / +0.00%]
codesize/test_codesize_minimal_pthreads_memgrowth.json: 26829 => 26829 [+0 bytes / +0.00%]

Average change: +0.00% (+0.00% - +0.00%)
```
Copy link
Copy Markdown
Collaborator

@sbc100 sbc100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. I had a larger PR #26568, but we decided against the complexity. This one looks more reasonable/targeted.

"p_proto": 8
},
"pthread": {
"__size__": 124,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did src/struct_info_generated_wasm64.json not change? Maybe something to do with alignment?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, I tried ./emcc --clear-cache && ./tools/gen_struct_info.py --wasm64 but nothing changed.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, must be that due to alignment that the overall size doesn't change.

@kleisauke
Copy link
Copy Markdown
Collaborator Author

Nice. I had a larger PR #26568, but we decided against the complexity. This one looks more reasonable/targeted.

Sorry, I missed that PR.

@sbc100 sbc100 merged commit 00f352d into emscripten-core:main May 10, 2026
30 checks passed
@kleisauke kleisauke deleted the remove-unused-field-from-pthread branch May 10, 2026 18:34
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.

2 participants