Skip to content

Commit

Permalink
Assert stack_ after status_
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Mar 4, 2012
1 parent 3e55abc commit 6f03576
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vm/fiber_data.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ namespace rubinius {
} }


void FiberData::take_stack(STATE) { void FiberData::take_stack(STATE) {
assert(stack_);

assert(status_ != eDead); assert(status_ != eDead);


if(status_ == eOnStack || status_ == eRunning) return; if(status_ == eOnStack || status_ == eRunning) return;


assert(stack_);

if(stack_->shared_p()) stack_->flush(state); if(stack_->shared_p()) stack_->flush(state);
stack_->set_user(this); stack_->set_user(this);


Expand Down

0 comments on commit 6f03576

Please sign in to comment.