Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
8bf627bb
Commit
8bf627bb
authored
Oct 12, 2017
by
Tiago Peixoto
Browse files
Increase default boost::coroutine stack size to 1 MB
This fixes a problem with stack corruption in graph_draw().
parent
8846ca81
Changes
3
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
8bf627bb
...
...
@@ -161,6 +161,7 @@ AX_BOOST_COROUTINE
if test "$BOOST_COROUTINE_LIB" = ""; then
AC_MSG_WARN([No usable boost::coroutine found! Some functionality will be disabled in the library.])
fi
AC_DEFINE([BOOST_COROUTINE_STACK_SIZE], 1000000, [Stack size in bytes])
AX_BOOST_GRAPH
if test "$BOOST_GRAPH_LIB" = ""; then
AC_MSG_ERROR([No usable boost::graph found])
...
...
src/graph/coroutine.hh
View file @
8bf627bb
...
...
@@ -37,6 +37,7 @@
namespace
coroutines
=
boost
::
coroutines
;
}
# endif
#endif // HAVE_BOOST_COROUTINE
#endif // COROUTINE_HH
src/graph/graph_python_interface.hh
View file @
8bf627bb
...
...
@@ -90,7 +90,9 @@ class CoroGenerator
public:
template
<
class
Dispatch
>
CoroGenerator
(
Dispatch
&
dispatch
)
:
_coro
(
std
::
make_shared
<
coro_t
::
pull_type
>
(
dispatch
)),
:
_coro
(
std
::
make_shared
<
coro_t
::
pull_type
>
(
coroutines
::
fixedsize_stack
(
BOOST_COROUTINE_STACK_SIZE
),
dispatch
)),
_iter
(
begin
(
*
_coro
)),
_end
(
end
(
*
_coro
)),
_first
(
true
)
{}
boost
::
python
::
object
next
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment