$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r80553 - trunk/libs/context/src
From: oliver.kowalke_at_[hidden]
Date: 2012-09-17 05:24:55
Author: olli
Date: 2012-09-17 05:24:54 EDT (Mon, 17 Sep 2012)
New Revision: 80553
URL: http://svn.boost.org/trac/boost/changeset/80553
Log:
context: default_stacksize() refactored
Text files modified: 
   trunk/libs/context/src/guarded_stack_allocator_posix.cpp |     9 ++++-----                               
   1 files changed, 4 insertions(+), 5 deletions(-)
Modified: trunk/libs/context/src/guarded_stack_allocator_posix.cpp
==============================================================================
--- trunk/libs/context/src/guarded_stack_allocator_posix.cpp	(original)
+++ trunk/libs/context/src/guarded_stack_allocator_posix.cpp	2012-09-17 05:24:54 EDT (Mon, 17 Sep 2012)
@@ -87,13 +87,12 @@
 std::size_t
 guarded_stack_allocator::default_stacksize()
 {
-    std::size_t size = 64 * 1024; // 64 kB
-    if ( is_stack_unbound() )
-        return std::max( size, minimum_stacksize() );
+    std::size_t size = 8 * minimum_stacksize();
+    if ( is_stack_unbound() ) return size;
     
     BOOST_ASSERT( maximum_stacksize() >= minimum_stacksize() );
-    return maximum_stacksize() == minimum_stacksize()
-        ? minimum_stacksize()
+    return maximum_stacksize() == size
+        ? size
         : std::min( size, maximum_stacksize() );
 }