Skip to content

Use static initializer for main pthread struct#23904

Closed
sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:pthread_stub_init
Closed

Use static initializer for main pthread struct#23904
sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:pthread_stub_init

Conversation

@sbc100

@sbc100 sbc100 commented Mar 12, 2025

Copy link
Copy Markdown
Collaborator

Turns out this is a slight regression in code size because we end up with more data segments that cannot got in .bss. I guess its not worth landing?

Turns out this is a slight regression in code size because we end
up with more data segments that cannot got in .bss.  I guess its not
worth landing?
@kripken

kripken commented Mar 12, 2025

Copy link
Copy Markdown
Member

Hmm, yeah, I guess it moves stuff to data, which then is no longer zeroes...

I tend to agree it isn't worth landing, unless there is a benefit I am missing.

@sbc100

sbc100 commented Mar 12, 2025

Copy link
Copy Markdown
Collaborator Author

No, I just wanted share these slightly surprising results.

@sbc100 sbc100 closed this Mar 12, 2025
@sbc100 sbc100 deleted the pthread_stub_init branch March 12, 2025 20:45
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