From bf9bd5a9f6f157ea15a0a9840588231042372847 Mon Sep 17 00:00:00 2001 From: dnotestein Date: Mon, 16 Jun 2014 16:55:19 -0400 Subject: [PATCH] Increase task context stack from 64K to 8*64K to prevent the stack from overflowing in the p2p code. --- src/thread/context.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thread/context.hpp b/src/thread/context.hpp index d7ac57e..5f7f8d6 100644 --- a/src/thread/context.hpp +++ b/src/thread/context.hpp @@ -53,7 +53,7 @@ namespace fc { { #if BOOST_VERSION >= 105400 bco::stack_context stack_ctx; - size_t stack_size = bco::stack_allocator::default_stacksize(); + size_t stack_size = bco::stack_allocator::default_stacksize() * 8; alloc.allocate(stack_ctx, stack_size); my_context = bc::make_fcontext( stack_ctx.sp, stack_ctx.size, sf); #elif BOOST_VERSION >= 105300