diff --git a/ide/vs2022/mimalloc.vcxproj b/ide/vs2022/mimalloc.vcxproj index 894c5030..07a854ab 100644 --- a/ide/vs2022/mimalloc.vcxproj +++ b/ide/vs2022/mimalloc.vcxproj @@ -116,7 +116,7 @@ true Default ../../include - MI_DEBUG=0;MI_SECURE=0;%(PreprocessorDefinitions); + MI_DEBUG=4;MI_SECURE=0;%(PreprocessorDefinitions); CompileAsCpp false stdcpp20 diff --git a/test/main-override-static.c b/test/main-override-static.c index 5e8b7333..e71be29e 100644 --- a/test/main-override-static.c +++ b/test/main-override-static.c @@ -38,7 +38,7 @@ int main() { // alloc_huge(); // test_heap_walk(); // test_heap_arena(); - test_align(); + // test_align(); void* p1 = malloc(78); void* p2 = malloc(24); diff --git a/test/test-api.c b/test/test-api.c index 1967dad7..c78e1972 100644 --- a/test/test-api.c +++ b/test/test-api.c @@ -212,24 +212,6 @@ int main(void) { result = mi_heap_contains_block(heap, p); mi_heap_destroy(heap); } - CHECK_BODY("malloc-aligned12") { - bool ok = true; - const size_t align = 256; - for (int j = 1; j < 1000; j++) { - void* ps[1000]; - for (int i = 0; i < 1000 && ok; i++) { - ps[i] = mi_malloc_aligned(j // size - , align); - if (ps[i] == NULL || ((uintptr_t)(ps[i]) % align) != 0) { - ok = false; - } - } - for (int i = 0; i < 1000 && ok; i++) { - mi_free(ps[i]); - } - } - result = ok; - }; CHECK_BODY("malloc-aligned-at1") { void* p = mi_malloc_aligned_at(48,32,0); result = (p != NULL && ((uintptr_t)(p) + 0) % 32 == 0); mi_free(p); };