| ... | @@ -465,7 +465,7 @@ const WasmImpl = struct { | ... | @@ -465,7 +465,7 @@ const WasmImpl = struct { |
| 465 | @compileError("WASI target missing cpu feature 'atomics'"); | 465 | @compileError("WASI target missing cpu feature 'atomics'"); |
| 466 | } | 466 | } |
| 467 | const to: i64 = if (timeout) |to| @intCast(to) else -1; | 467 | const to: i64 = if (timeout) |to| @intCast(to) else -1; |
| 468 | const result = asm ( | 468 | const result = asm volatile ( |
| 469 | \\local.get %[ptr] | 469 | \\local.get %[ptr] |
| 470 | \\local.get %[expected] | 470 | \\local.get %[expected] |
| 471 | \\local.get %[timeout] | 471 | \\local.get %[timeout] |
| ... | @@ -489,7 +489,7 @@ const WasmImpl = struct { | ... | @@ -489,7 +489,7 @@ const WasmImpl = struct { |
| 489 | @compileError("WASI target missing cpu feature 'atomics'"); | 489 | @compileError("WASI target missing cpu feature 'atomics'"); |
| 490 | } | 490 | } |
| 491 | assert(max_waiters != 0); | 491 | assert(max_waiters != 0); |
| 492 | const woken_count = asm ( | 492 | const woken_count = asm volatile ( |
| 493 | \\local.get %[ptr] | 493 | \\local.get %[ptr] |
| 494 | \\local.get %[waiters] | 494 | \\local.get %[waiters] |
| 495 | \\memory.atomic.notify 0 | 495 | \\memory.atomic.notify 0 |