Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86679 - trunk/libs/coroutine/src/detail
From: oliver.kowalke_at_[hidden]
Date: 2013-11-13 11:32:52


Author: olli
Date: 2013-11-13 11:32:52 EST (Wed, 13 Nov 2013)
New Revision: 86679
URL: http://svn.boost.org/trac/boost/changeset/86679

Log:
coroutine: fix bug #9355

Text files modified:
   trunk/libs/coroutine/src/detail/standard_stack_allocator_posix.cpp | 12 +++---------
   trunk/libs/coroutine/src/detail/standard_stack_allocator_windows.cpp | 5 +----
   2 files changed, 4 insertions(+), 13 deletions(-)

Modified: trunk/libs/coroutine/src/detail/standard_stack_allocator_posix.cpp
==============================================================================
--- trunk/libs/coroutine/src/detail/standard_stack_allocator_posix.cpp Wed Nov 13 09:53:37 2013 (r86678)
+++ trunk/libs/coroutine/src/detail/standard_stack_allocator_posix.cpp 2013-11-13 11:32:52 EST (Wed, 13 Nov 2013) (r86679)
@@ -42,12 +42,9 @@
 namespace coroutines {
 namespace detail {
 
+// conform to POSIX.1-2001
 std::size_t pagesize()
-{
- // conform to POSIX.1-2001
- static std::size_t size = ::sysconf( _SC_PAGESIZE);
- return size;
-}
+{ return ::sysconf( _SC_PAGESIZE); }
 
 rlimit stacksize_limit_()
 {
@@ -63,10 +60,7 @@
 }
 
 rlimit stacksize_limit()
-{
- static rlimit limit = stacksize_limit_();
- return limit;
-}
+{ return stacksize_limit_(); }
 
 std::size_t page_count( std::size_t stacksize)
 {

Modified: trunk/libs/coroutine/src/detail/standard_stack_allocator_windows.cpp
==============================================================================
--- trunk/libs/coroutine/src/detail/standard_stack_allocator_windows.cpp Wed Nov 13 09:53:37 2013 (r86678)
+++ trunk/libs/coroutine/src/detail/standard_stack_allocator_windows.cpp 2013-11-13 11:32:52 EST (Wed, 13 Nov 2013) (r86679)
@@ -59,10 +59,7 @@
 }
 
 SYSTEM_INFO system_info()
-{
- static SYSTEM_INFO si = system_info_();
- return si;
-}
+{ return system_info_(); }
 
 std::size_t pagesize()
 { return static_cast< std::size_t >( system_info().dwPageSize); }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk