further fixes to allow statically linking mimalloc in DLL modules (issue #508)

This commit is contained in:
Daan Leijen 2022-01-10 16:07:22 -08:00
parent 5bc9a1c95f
commit 320f95f6cd
3 changed files with 13 additions and 15 deletions

View file

@ -46,7 +46,7 @@ int main() {
tsan_numa_test();
strdup_test();
//test_mt_shutdown();
test_mt_shutdown();
//fail_aslr();
mi_stats_print(NULL);
return 0;
@ -71,7 +71,7 @@ public:
static void various_tests() {
atexit(free_p);
void* p1 = malloc(78);
void* p2 = mi_malloc_aligned(16, 24);
void* p2 = mi_malloc_aligned(24, 16);
free(p1);
p1 = malloc(8);
char* s = mi_strdup("hello\n");