Skip to content

Commit

Permalink
fix(greedy-balancer) benign but unnecessary race setting marker from …
Browse files Browse the repository at this point in the history
…multiple threads
  • Loading branch information
larsgottesbueren committed Oct 26, 2024
1 parent af28b61 commit 0d574ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kaminpar-shm/refinement/balancer/greedy_balancer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ BlockWeight GreedyBalancer::perform_round() {
_p_graph->adjacent_nodes(u, [&](const NodeID v) {
if (!_marker.get(v) && _p_graph->block(v) == from) {
add_to_pq(from, v);
_marker.set(v);
}
_marker.set(v);
});
} else {
add_to_pq(from, u, u_weight, actual_relative_gain);
Expand Down

0 comments on commit 0d574ae

Please sign in to comment.