[tbb] 02/03: Use 1MB stack for 32-bit MIPS test threads

Steven Capper capper-guest at moszumanska.debian.org
Tue Jul 25 18:09:53 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 c06a1eb1c74dd0175d07fe3dbd79f007b89509c7
Author: Steve Capper <steven.capper at gmail.com>
Date:   Tue Jul 25 19:04:19 2017 +0100

    Use 1MB stack for 32-bit MIPS test threads
    
    This allows the test harness to execute without running out of memory
---
 debian/patches/fixup-mips-harness.patch | 16 ++++++++++++++++
 debian/patches/series                   |  1 +
 2 files changed, 17 insertions(+)

diff --git a/debian/patches/fixup-mips-harness.patch b/debian/patches/fixup-mips-harness.patch
new file mode 100644
index 0000000..8953ca2
--- /dev/null
+++ b/debian/patches/fixup-mips-harness.patch
@@ -0,0 +1,16 @@
+Description: Use 1MB stack on 32-bit MIPS, fix out of memory error on thread creation
+Author: Steve Capper <steven.capper at gmail.com>
+
+Index: tbb/src/test/harness.h
+===================================================================
+--- tbb.orig/src/test/harness.h
++++ tbb/src/test/harness.h
+@@ -511,7 +511,7 @@ public:
+ // TODO: make a single definition of MByte used by all tests.
+         const size_t MByte = 1024*1024;
+ #if !defined(HARNESS_THREAD_STACK_SIZE)
+-#if __i386__||__i386||__arm__
++#if __i386__||__i386||__arm__||(_MIPS_ISA == _MIPS_ISA_MIPS32)
+         const size_t stack_size = 1*MByte;
+ #elif __x86_64__
+         const size_t stack_size = 2*MByte;
diff --git a/debian/patches/series b/debian/patches/series
index aa2c432..1ee448e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -12,3 +12,4 @@ cross.patch
 fix-armel.patch
 debug_alloc.patch
 allow-reproducible-builds.patch
+fixup-mips-harness.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