summaryrefslogtreecommitdiffstats
path: root/runtime/barrier_test.cc
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2013-11-13 14:33:28 -0800
committerMathieu Chartier <mathieuc@google.com>2013-11-13 14:48:41 -0800
commitbcd5e9daecad39f0dab3246808b4835caec29ea6 (patch)
tree1221f94faef80c649e7236f0e7c3045383720abb /runtime/barrier_test.cc
parentdfcca560e7b92e055a02adb39fdfb11798144cdd (diff)
downloadart-bcd5e9daecad39f0dab3246808b4835caec29ea6.zip
art-bcd5e9daecad39f0dab3246808b4835caec29ea6.tar.gz
art-bcd5e9daecad39f0dab3246808b4835caec29ea6.tar.bz2
Manually manage thread pool stacks.
We now allocate the thread pool worker stack using a MemMap. This enables us to name the maps so that we get more descriptive output for debugging leaks. Appears to fix the mips build 5/5 successful clean-oat and builds. This is probably since glibc caches up to 40 MB of thread stacks before releasing them. Change-Id: I1df2de50cb95838aa0d272a09807021404ba410c
Diffstat (limited to 'runtime/barrier_test.cc')
-rw-r--r--runtime/barrier_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/barrier_test.cc b/runtime/barrier_test.cc
index 298ae56..91fc143 100644
--- a/runtime/barrier_test.cc
+++ b/runtime/barrier_test.cc
@@ -66,7 +66,7 @@ int32_t BarrierTest::num_threads = 4;
// Check that barrier wait and barrier increment work.
TEST_F(BarrierTest, CheckWait) {
Thread* self = Thread::Current();
- ThreadPool thread_pool(num_threads);
+ ThreadPool thread_pool("Barrier test thread pool", num_threads);
Barrier barrier(0);
AtomicInteger count1(0);
AtomicInteger count2(0);
@@ -121,7 +121,7 @@ class CheckPassTask : public Task {
// Check that barrier pass through works.
TEST_F(BarrierTest, CheckPass) {
Thread* self = Thread::Current();
- ThreadPool thread_pool(num_threads);
+ ThreadPool thread_pool("Barrier test thread pool", num_threads);
Barrier barrier(0);
AtomicInteger count(0);
const int32_t num_tasks = num_threads * 4;