mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 08:12:28 +00:00
Introduce ctl::set and ctl::map
We now have a C++ red-black tree implementation that implements standard template library compatible APIs while compiling 10x faster than libcxx. It's not as beautiful as the red-black tree implementation in Plinko but this will get the job done and the test proves it upholds all invariants This change also restores CheckForMemoryLeaks() support and fixes a real actual bug I discovered with Doug Lea's dlmalloc_inspect_all() function.
This commit is contained in:
parent
388e236360
commit
c4c812c154
45 changed files with 2358 additions and 135 deletions
|
@ -40,14 +40,10 @@ wontreturn void exit(int exitcode) {
|
|||
STRACE("exit(%d)", exitcode);
|
||||
|
||||
// call thread local c++ object destructors
|
||||
if (_weaken(__cxa_thread_finalize)) {
|
||||
_weaken(__cxa_thread_finalize)();
|
||||
}
|
||||
__cxa_thread_finalize();
|
||||
|
||||
// call atexit() and __cxa_atexit() destructors
|
||||
if (_weaken(__cxa_finalize)) {
|
||||
_weaken(__cxa_finalize)(NULL);
|
||||
}
|
||||
__cxa_finalize(NULL);
|
||||
|
||||
// call __destructor__ and finiarray destructors
|
||||
const uintptr_t *p;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue