]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Plumb malloc_zone_memalign() through malloc_zone_t struct on OS X. No regressions.
authorRhys Kidd <rhyskidd@gmail.com>
Sun, 4 Oct 2015 09:23:07 +0000 (09:23 +0000)
committerRhys Kidd <rhyskidd@gmail.com>
Sun, 4 Oct 2015 09:23:07 +0000 (09:23 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15698

coregrind/m_replacemalloc/vg_replace_malloc.c

index 1483e82814c08b1ab79acba0a33a95923ee56403..b98fdd4661a06608aa4d02bef31a6ff2acad49db 100644 (file)
@@ -1181,7 +1181,7 @@ static vki_malloc_zone_t vg_default_zone = {
     NULL, // batch_free
     NULL, // GrP fixme: introspect
     2,  // version (GrP fixme 3?)
-    NULL, /* memalign */   // DDD: this field exists in Mac OS 10.6, but not 10.5.
+    (void*)VG_REPLACE_FUNCTION_EZU(10100,VG_Z_LIBC_SONAME,malloc_zone_memalign), // DDD: this field exists in Mac OS 10.6+
     NULL, /* free_definite_size */
     NULL, /* pressure_relief */
 };