mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-06 07:29:30 +03:00
merge from dev
This commit is contained in:
commit
0877c941de
1 changed files with 17 additions and 6 deletions
|
@ -37,14 +37,18 @@ static void fail_aslr(); // issue #372
|
||||||
static void tsan_numa_test(); // issue #414
|
static void tsan_numa_test(); // issue #414
|
||||||
static void strdup_test(); // issue #445
|
static void strdup_test(); // issue #445
|
||||||
static void bench_alloc_large(void); // issue #xxx
|
static void bench_alloc_large(void); // issue #xxx
|
||||||
static void test_large_migrate(void); // issue #691
|
//static void test_large_migrate(void); // issue #691
|
||||||
static void heap_thread_free_huge();
|
static void heap_thread_free_huge();
|
||||||
|
static void test_std_string(); // issue #697
|
||||||
|
|
||||||
static void test_stl_allocators();
|
static void test_stl_allocators();
|
||||||
|
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
mi_stats_reset(); // ignore earlier allocations
|
// mi_stats_reset(); // ignore earlier allocations
|
||||||
|
|
||||||
|
test_std_string();
|
||||||
|
// heap_thread_free_huge();
|
||||||
/*
|
/*
|
||||||
heap_thread_free_huge();
|
heap_thread_free_huge();
|
||||||
heap_thread_free_large();
|
heap_thread_free_large();
|
||||||
|
@ -58,11 +62,10 @@ int main() {
|
||||||
*/
|
*/
|
||||||
// test_stl_allocators();
|
// test_stl_allocators();
|
||||||
// test_mt_shutdown();
|
// test_mt_shutdown();
|
||||||
test_large_migrate();
|
// test_large_migrate();
|
||||||
|
|
||||||
//fail_aslr();
|
//fail_aslr();
|
||||||
bench_alloc_large();
|
// mi_stats_print(NULL);
|
||||||
mi_stats_print(NULL);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -177,7 +180,7 @@ static void test_stl_allocators() {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
// issue #691
|
// issue #691
|
||||||
static char* cptr;
|
static char* cptr;
|
||||||
|
|
||||||
|
@ -211,6 +214,7 @@ static void test_large_migrate(void) {
|
||||||
*/
|
*/
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// issue 445
|
// issue 445
|
||||||
static void strdup_test() {
|
static void strdup_test() {
|
||||||
|
@ -237,6 +241,13 @@ static void heap_no_delete() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Issue #697
|
||||||
|
static void test_std_string() {
|
||||||
|
std::string path = "/Users/xxxx/Library/Developer/Xcode/DerivedData/xxxxxxxxxx/Build/Intermediates.noindex/xxxxxxxxxxx/arm64/XX_lto.o/0.arm64.lto.o";
|
||||||
|
std::string path1 = "/Users/xxxx/Library/Developer/Xcode/DerivedData/xxxxxxxxxx/Build/Intermediates.noindex/xxxxxxxxxxx/arm64/XX_lto.o/1.arm64.lto.o";
|
||||||
|
std::cout << path + "\n>>> " + path1 + "\n>>> " << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
// Issue #204
|
// Issue #204
|
||||||
static volatile void* global_p;
|
static volatile void* global_p;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue