Permalink
Browse files

Assert stack_ after status_

  • Loading branch information...
1 parent 3e55abc commit 6f03576c9fd0a1702599add762c7f194d35f4918 @ryoqun ryoqun committed Mar 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 vm/fiber_data.cpp
View
@@ -115,12 +115,12 @@ namespace rubinius {
}
void FiberData::take_stack(STATE) {
- assert(stack_);
-
assert(status_ != eDead);
if(status_ == eOnStack || status_ == eRunning) return;
+ assert(stack_);
+
if(stack_->shared_p()) stack_->flush(state);
stack_->set_user(this);

0 comments on commit 6f03576

Please sign in to comment.