Skip to content

Use static initializer for main pthread struct#23904

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

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

Conversation

@sbc100
Copy link
Copy Markdown
Collaborator

@sbc100 sbc100 commented Mar 12, 2025

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
Copy link
Copy Markdown
Member

kripken commented Mar 12, 2025

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
Copy link
Copy Markdown
Collaborator Author

sbc100 commented Mar 12, 2025

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