authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-11-27 19:07:55+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-11-27 23:24:37+01:00
log6cf01a679f1950f1393d9245048a62500e3869c1
treed80667b6bdd3ffe635aa18409a332413b093d7f5
parentd16a9b0acb14ad217849de2a59d91cd4648ac1a7

std.Thread.Futex: Mark inline asm volatile in WasmImpl.

Closes #22082.

1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/Thread/Futex.zig+2-2
......@@ -465,7 +465,7 @@ const WasmImpl = struct {
465465 @compileError("WASI target missing cpu feature 'atomics'");
466466 }
467467 const to: i64 = if (timeout) |to| @intCast(to) else -1;
468 const result = asm (
468 const result = asm volatile (
469469 \\local.get %[ptr]
470470 \\local.get %[expected]
471471 \\local.get %[timeout]
......@@ -489,7 +489,7 @@ const WasmImpl = struct {
489489 @compileError("WASI target missing cpu feature 'atomics'");
490490 }
491491 assert(max_waiters != 0);
492 const woken_count = asm (
492 const woken_count = asm volatile (
493493 \\local.get %[ptr]
494494 \\local.get %[waiters]
495495 \\memory.atomic.notify 0