Skip to content

Commit d2dcd9f

Browse files
committed
Try to avoid false sharing
1 parent da98794 commit d2dcd9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bench/bench_bounded_q.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ end = struct
2222
if capacity < 0 then invalid_arg "negative capacity"
2323
else
2424
let mutex = Mutex.create ()
25-
and queue = Queue.create ()
25+
and queue = Queue.create () |> Multicore_magic.copy_as_padded
2626
and not_empty = Condition.create ()
2727
and not_full = Condition.create () in
2828
{ mutex; queue; capacity; not_empty; not_full }

0 commit comments

Comments
 (0)