merge from dev

This commit is contained in:
Daan Leijen 2023-03-20 14:28:21 -07:00
commit b0ba746307
4 changed files with 28 additions and 7 deletions

View file

@ -39,12 +39,16 @@ static void strdup_test(); // issue #445
static void bench_alloc_large(void); // issue #xxx
static void test_large_migrate(void); // issue #691
static void heap_thread_free_huge();
static void test_std_string(); // issue #697
static void test_stl_allocators();
int main() {
mi_stats_reset(); // ignore earlier allocations
// test_std_string();
// heap_thread_free_huge();
/*
heap_thread_free_huge();
heap_thread_free_large();
@ -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
static volatile void* global_p;