Skip to content

Avoid using __cxa_thread_atexit for pthread_cleanup_push. #15210

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

Merged
merged 1 commit into from
Oct 4, 2021

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Oct 4, 2021

These is no need to use __cxa_thread_atexit here, we can just call
these functions during thread exit (which is what musl does).

This also avoids references __cxa_thread_atexit which is normally a
libc++abi symbol from C programs.

Needed by (split out from) #14489.

@sbc100 sbc100 requested review from kleisauke and dschuff October 4, 2021 15:46
@sbc100 sbc100 enabled auto-merge (squash) October 4, 2021 15:47
@sbc100 sbc100 force-pushed the avoid___cxa_thread_atexit branch from 1f479cf to 2cdcb71 Compare October 4, 2021 15:59
These is no need to use `__cxa_thread_atexit` here, we can just call
these functions during thread exit (which is what musl does).

This also avoids references `__cxa_thread_atexit` which is normally a
libc++abi symbol from C programs.

Needed by (split out from) #14489.
@sbc100 sbc100 force-pushed the avoid___cxa_thread_atexit branch from 2cdcb71 to baac32a Compare October 4, 2021 17:15
@sbc100 sbc100 merged commit f2c090b into main Oct 4, 2021
@sbc100 sbc100 deleted the avoid___cxa_thread_atexit branch October 4, 2021 18:09
sbc100 added a commit that referenced this pull request Oct 4, 2021
Use libc++abi's version of __cxa_thread_atexit.

Followup to #14484 and #14464 which both move more of the cleanup
handling for threads and processes onto the native side.

Depends on #15210.
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