Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
windoze committed Sep 4, 2015
1 parent 7ac53bb commit ed791cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fiber/fiber_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,12 @@ namespace fibio { namespace fibers { namespace detail {
// will register stacks, so that Valgrind is not confused.
template<typename traitsT>
class valgrind_stack_allocator {
typedef traitsT traits_type;
BOOST_COROUTINE_STACK_ALLOCATOR<traitsT> allocator;
std::unordered_map<void*, unsigned> stack_ids;

public:
typedef traitsT traits_type;

void inline allocate( boost::coroutines::stack_context &sc, std::size_t size) {
allocator.allocate(sc, size);
auto res = stack_ids.insert({sc.sp, VALGRIND_STACK_REGISTER(sc.sp, (((char*)sc.sp) - sc.size))});
Expand Down

0 comments on commit ed791cb

Please sign in to comment.