mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 11:34:38 +03:00
further fixes to allow statically linking mimalloc in DLL modules (issue #508)
This commit is contained in:
parent
5bc9a1c95f
commit
320f95f6cd
3 changed files with 13 additions and 15 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue