[proxy](7/n) self vendor array and algorithm headers (#722)

* [proxy](7/n) proxy array and algorithm headers

* [wip] address CRs

* undo comment

* format

* fix build

* simplify macro dispatching
This commit is contained in:
Schrodinger ZHU Yifan
2025-01-09 21:49:22 +08:00
committed by GitHub
parent 0027f02396
commit 0111a410a2
27 changed files with 200 additions and 58 deletions

View File

@@ -30,6 +30,7 @@ int main()
# include <assert.h>
# include <csetjmp>
# include <initializer_list>
# include <stdio.h>
# include <stdlib.h>
# include <string.h>

View File

@@ -1,3 +1,4 @@
#include <array>
#include <iostream>
#include <snmalloc/snmalloc.h>
#include <test/opt.h>
@@ -5,6 +6,7 @@
#include <test/xoroshiro.h>
#include <unordered_set>
#include <vector>
#if ((defined(__linux__) && !defined(__ANDROID__)) || defined(__sun)) || \
defined(__OpenBSD__) && !defined(SNMALLOC_QEMU_WORKAROUND)
/*

View File

@@ -2,6 +2,7 @@
# undef SNMALLOC_USE_PTHREAD_DESTRUCTORS
#endif
#include <new>
#include <snmalloc/snmalloc_core.h>
#include <test/setup.h>