mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-26 14:28:30 +00:00
Introduce __cxa_thread_atexit()
This commit is contained in:
parent
a699cda5c8
commit
ee82f90bba
6 changed files with 98 additions and 0 deletions
|
@ -20,6 +20,7 @@
|
|||
#include "libc/intrin/asan.internal.h"
|
||||
#include "libc/intrin/bits.h"
|
||||
#include "libc/intrin/cmpxchg.h"
|
||||
#include "libc/intrin/cxaatexit.internal.h"
|
||||
#include "libc/intrin/kprintf.h"
|
||||
#include "libc/intrin/strace.internal.h"
|
||||
#include "libc/mem/mem.h"
|
||||
|
@ -94,6 +95,7 @@ dontasan void CheckForMemoryLeaks(void) {
|
|||
exit(0);
|
||||
}
|
||||
_pthread_unwind(_pthread_self());
|
||||
__cxa_thread_finalize();
|
||||
_pthread_unkey(__get_tls());
|
||||
_pthread_ungarbage();
|
||||
__cxa_finalize(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue