Skip to content
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

Optimize TLS access in generated code on FreeBSD #47891

Merged
merged 2 commits into from
Dec 14, 2022
Merged

Conversation

ararslan
Copy link
Member

This extends the optimization made for Linux in #17178 to FreeBSD.

In #17178, Yichao said

FreeBSD or other platforms that uses ELF format probably works too assuming it has dl_iterate_phdr but I can't really test.

Here we are, 6.5 years later, and I can confirm that Yichao was right: this builds and passes all tests on FreeBSD.

This extends the optimization made for Linux in PR 17178 to FreeBSD. The
build and all tests pass locally with this change.
@ararslan ararslan added performance Must go faster system:freebsd Affects only FreeBSD multithreading Base.Threads and related functionality labels Dec 14, 2022
@ararslan
Copy link
Member Author

lol of course it failed FreeBSD CI.

Looks like the FreeBSD version we're using on CI doesn't have https://reviews.freebsd.org/D31427?id=93334. Should be an easy fix.

@vtjnash vtjnash added the merge me PR is reviewed. Merge when all tests are passing label Dec 14, 2022
@ararslan ararslan merged commit c8a0521 into master Dec 14, 2022
@ararslan ararslan deleted the aa/threads/elf branch December 14, 2022 17:33
@giordano giordano removed the merge me PR is reviewed. Merge when all tests are passing label Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
multithreading Base.Threads and related functionality performance Must go faster system:freebsd Affects only FreeBSD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants