Skip to content
Snippets Groups Projects
Commit 8e73271f authored by Avi Kivity's avatar Avi Kivity
Browse files

sched: fix thread not queued on runqueue

We used rbtree::insert_unique(), which only inserts if the value if unique.
But uniqueness is defined in terms of the ordering function, which compares
vruntime, not object identity.  The result is that if another thread was
queued with exactly the same vruntime, then the new thread is not queued.

Fix by using rbtree:insert_equal(), which inserts unconditionally.

Fixes the callout unit test.
parent f9e6b500
No related branches found
No related tags found
Loading
Loading
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