Skip to content
Snippets Groups Projects
Commit e4042ad4 authored by Florian Schmaus's avatar Florian Schmaus
Browse files

[ContextManager] Add assert(currentFiber)

parent a2880159
No related branches found
No related tags found
No related merge requests found
......@@ -148,6 +148,7 @@ void ContextManager::discardAndResume(Context* context) {
// the end of its dispatch loop, and hence we need to ensure that
// its fiber is recycled.
AbstractFiber* currentFiber = contextToFree->getFiber();
assert(currentFiber);
runtime.dispatcher.recycle(currentFiber);
contextToFree->discardAndResume(context);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment