Skip to content

Use static initializer for main pthread struct #23904

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

sbc100
Copy link
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
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
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