Skip to content

Avoid using __cxa_thread_atexit for pthread_cleanup_push. - #15210

Merged
sbc100 merged 1 commit into
mainfrom
avoid___cxa_thread_atexit
Oct 4, 2021
Merged

Avoid using __cxa_thread_atexit for pthread_cleanup_push.#15210
sbc100 merged 1 commit into
mainfrom
avoid___cxa_thread_atexit

Conversation

@sbc100

@sbc100 sbc100 commented Oct 4, 2021

Copy link
Copy Markdown
Collaborator

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 dschuff and kleisauke 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