Skip to content

Commit

Permalink
Don't copy dead Fiber stack to heap.
Browse files Browse the repository at this point in the history
Either status_ is wrong and the Fiber isn't dead, in which case we run the risk of
losing its stack, or we should ignore the copy_to_heap.
  • Loading branch information
brixen committed Jun 6, 2016
1 parent 3d24fc9 commit e9898e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machine/fiber_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ namespace rubinius {
}

void FiberData::copy_to_heap(STATE) {
assert(status_ != eDead);
if(status_ == eDead) return;
assert(stack_);

heap_size_ = (uintptr_t)stack_->top_address() - (uintptr_t)stack_bottom();
Expand Down

0 comments on commit e9898e8

Please sign in to comment.