From: Debian Science Maintainers Date: Wed, 7 Sep 2022 18:45:46 +0000 (+0100) Subject: remove-unaligned-test X-Git-Tag: archive/raspbian/2021.5.0-15+rpi1~2^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4dd14063b0fdcbe4fac17abfbc445d592d383c40;p=onetbb.git remove-unaligned-test iDescription: Remove unaligned mem-accesses from test_malloc_pools.cpp =================================================================== Gbp-Pq: Name remove-unaligned-test.patch --- diff --git a/test/tbbmalloc/test_malloc_pools.cpp b/test/tbbmalloc/test_malloc_pools.cpp index cbe06ab..2d455ea 100644 --- a/test/tbbmalloc/test_malloc_pools.cpp +++ b/test/tbbmalloc/test_malloc_pools.cpp @@ -66,11 +66,10 @@ static std::atomic liveRegions; static void *getMallocMem(intptr_t /*pool_id*/, size_t &bytes) { - void *rawPtr = malloc(bytes+sizeof(MallocPoolHeader)+1); + void *rawPtr = malloc(bytes+sizeof(MallocPoolHeader)); if (!rawPtr) return NULL; - // +1 to check working with unaligned space - void *ret = (void *)((uintptr_t)rawPtr+sizeof(MallocPoolHeader)+1); + void *ret = (void *)((uintptr_t)rawPtr+sizeof(MallocPoolHeader)); MallocPoolHeader *hdr = (MallocPoolHeader*)ret-1; hdr->rawPtr = rawPtr;