[tbb] 01/01: Remove unaligned memory test

Steven Capper capper-guest at moszumanska.debian.org
Sun Aug 13 20:08:10 UTC 2017


This is an automated email from the git hooks/post-receive script.

capper-guest pushed a commit to branch steve-staging
in repository tbb.

commit 67a069f4347bf92b459068ed184bb8874c1e9514
Author: Steve Capper <steven.capper at gmail.com>
Date:   Sun Aug 13 21:04:43 2017 +0100

    Remove unaligned memory test
    
    This should help sparc64 tests, if we miss a case a SIGBUS
    will greet us.
---
 debian/patches/remove-unaligned-test.patch | 19 +++++++++++++++++++
 debian/patches/series                      |  1 +
 2 files changed, 20 insertions(+)

diff --git a/debian/patches/remove-unaligned-test.patch b/debian/patches/remove-unaligned-test.patch
new file mode 100644
index 0000000..d6415c0
--- /dev/null
+++ b/debian/patches/remove-unaligned-test.patch
@@ -0,0 +1,19 @@
+Description: Remove unaligned mem-accesses from test_malloc_pools.cpp
+Index: tbb-2017~U7/src/test/test_malloc_pools.cpp
+===================================================================
+--- tbb-2017~U7.orig/src/test/test_malloc_pools.cpp
++++ tbb-2017~U7/src/test/test_malloc_pools.cpp
+@@ -62,11 +62,10 @@ static tbb::atomic<int> 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;
diff --git a/debian/patches/series b/debian/patches/series
index ba9f415..f7a5c07 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -12,3 +12,4 @@ fix-armel.patch
 allow-reproducible-builds.patch
 fixup-mips-harness.patch
 enhanced-debugging.patch
+remove-unaligned-test.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/tbb.git



More information about the debian-science-commits mailing list