| ... | @@ -450,7 +450,7 @@ pub const Node = struct { | ... | @@ -450,7 +450,7 @@ pub const Node = struct { |
| 450 | const ipc = @atomicLoad(Ipc, ipc_ptr, .monotonic); | 450 | const ipc = @atomicLoad(Ipc, ipc_ptr, .monotonic); |
| 451 | if (ipc.locked or ipc.valid) continue; | 451 | if (ipc.locked or ipc.valid) continue; |
| 452 | const generation = ipc.generation +% 1; | 452 | const generation = ipc.generation +% 1; |
| 453 | if (@cmpxchgStrong( | 453 | if (@cmpxchgWeak( |
| 454 | Ipc, | 454 | Ipc, |
| 455 | ipc_ptr, | 455 | ipc_ptr, |
| 456 | ipc, | 456 | ipc, |
| ... | @@ -1133,7 +1133,7 @@ fn serialize(io: Io, serialized_buffer: *Serialized.Buffer) !Serialized { | ... | @@ -1133,7 +1133,7 @@ fn serialize(io: Io, serialized_buffer: *Serialized.Buffer) !Serialized { |
| 1133 | const ipc_data = &serialized_buffer.ipc_data[ipc_index.slot]; | 1133 | const ipc_data = &serialized_buffer.ipc_data[ipc_index.slot]; |
| 1134 | state: switch (ipc_data.state) { | 1134 | state: switch (ipc_data.state) { |
| 1135 | .unused => { | 1135 | .unused => { |
| 1136 | if (@cmpxchgStrong( | 1136 | if (@cmpxchgWeak( |
| 1137 | Ipc, | 1137 | Ipc, |
| 1138 | ipc, | 1138 | ipc, |
| 1139 | .{ .locked = false, .valid = true, .generation = ipc_index.generation }, | 1139 | .{ .locked = false, .valid = true, .generation = ipc_index.generation }, |