|
From: Paul F. <pa...@so...> - 2021-10-10 20:17:13
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=46607a76bd3be925f37aceb2ab4f49db0581e6b5 commit 46607a76bd3be925f37aceb2ab4f49db0581e6b5 Author: Paul Floyd <pj...@wa...> Date: Sun Oct 10 22:15:59 2021 +0200 memalign is available on FreeBSD as a non-portable interface Remove #if block protecting memalign calls Diff: --- memcheck/tests/memalign2.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/memcheck/tests/memalign2.c b/memcheck/tests/memalign2.c index 4ae967b9e8..95d13354e7 100644 --- a/memcheck/tests/memalign2.c +++ b/memcheck/tests/memalign2.c @@ -30,7 +30,6 @@ int main ( void ) int res; assert(sizeof(long int) == sizeof(void*)); -#if !defined(__FreeBSD__) // Check behaviour of memalign/free for big alignment. // In particular, the below aims at checking that a // superblock with a big size is not marked as reclaimable @@ -79,7 +78,6 @@ int main ( void ) p = memalign(4 * 1024 * 1024, 100); assert(0 == (long)p % (4 * 1024 * 1024)); p = memalign(16 * 1024 * 1024, 100); assert(0 == (long)p % (16 * 1024 * 1024)); -#endif # define PM(a,b,c) posix_memalign((void**)a, b, c) |