Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
marioskogias committed Oct 28, 2024
1 parent 06ee3b7 commit 910fea9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/rt/sched/behaviourcore.h
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ namespace verona::rt
Logging::cout() << " Previous slot is a writer or blocked reader cown "
<< *new_slot << Logging::endl;
yield();
goto OUT;
goto fn_out;
}

yield();
Expand All @@ -548,7 +548,8 @@ namespace verona::rt
{
ref_count = 1;
}
OUT:

fn_out:
return {ref_count, ex_count};
}

Expand Down Expand Up @@ -887,7 +888,9 @@ namespace verona::rt
chain_info[i].had_no_predecessor = true;
if (new_slot->is_read_only())
{
handle_read_only_enqueue(prev_slot, new_slot, cown);
auto counts = handle_read_only_enqueue(prev_slot, new_slot, cown);
chain_info[i].ref_count = std::get<0>(counts);
chain_info[i].ex_count = std::get<1>(counts);
}
continue;
}
Expand Down

0 comments on commit 910fea9

Please sign in to comment.