Loading...
tests/posix_memalign_test.c libmalloc-474.0.13 libmalloc-409.60.6
--- libmalloc/libmalloc-474.0.13/tests/posix_memalign_test.c
+++ libmalloc/libmalloc-409.60.6/tests/posix_memalign_test.c
@@ -12,7 +12,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-T_GLOBAL_META(T_META_RUN_CONCURRENTLY(true), T_META_TAG_XZONE);
+T_GLOBAL_META(T_META_RUN_CONCURRENTLY(true));
 
 static inline void*
 t_posix_memalign(size_t alignment, size_t size, bool scribble)
@@ -80,14 +80,10 @@
 	free(ptr);
 }
 
-#if defined(__LP64__) && TARGET_OS_OSX
+#if __LP64__ && TARGET_OS_OSX
 T_DECL(posix_memalign_large, "posix_memalign all power of two alignments up to 64GB")
 {
-	uint64_t max_alignment = UINT64_C(68719476736);
-	if (getenv("MallocSecureAllocator")) {
-		max_alignment = 1024 * 1024; // TODO: support for larger alignments
-	}
-	for (size_t alignment = sizeof(void*); alignment <= max_alignment; alignment *= 2) {
+	for (size_t alignment = sizeof(void*); alignment <= UINT64_C(68719476736); alignment *= 2) {
 		// don't scribble - we don't want to actually touch that many pages, we just
 		// verify that the allocated pointer looks reasonable
 		void* ptr = t_posix_memalign(alignment, alignment, false);