From: Rhys Kidd Date: Sun, 4 Oct 2015 09:23:07 +0000 (+0000) Subject: Plumb malloc_zone_memalign() through malloc_zone_t struct on OS X. No regressions. X-Git-Tag: svn/VALGRIND_3_12_0~325 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=821fd4cb111dbfd3253ce2e689e5fb8fc33305b5;p=thirdparty%2Fvalgrind.git Plumb malloc_zone_memalign() through malloc_zone_t struct on OS X. No regressions. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15698 --- diff --git a/coregrind/m_replacemalloc/vg_replace_malloc.c b/coregrind/m_replacemalloc/vg_replace_malloc.c index 1483e82814..b98fdd4661 100644 --- a/coregrind/m_replacemalloc/vg_replace_malloc.c +++ b/coregrind/m_replacemalloc/vg_replace_malloc.c @@ -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 */ };