@@ -320,11 +320,13 @@ end
320
320
321
321
# get, set(once), modify, swap and replace at index, atomically
322
322
function getindex_atomic (mem:: GenericMemory , order:: Symbol , i:: Int )
323
+ @_propagate_inbounds_meta
323
324
memref = memoryref (mem, i)
324
325
return memoryrefget (memref, order, @_boundscheck )
325
326
end
326
327
327
328
function setindex_atomic! (mem:: GenericMemory , order:: Symbol , val, i:: Int )
329
+ @_propagate_inbounds_meta
328
330
T = eltype (mem)
329
331
memref = memoryref (mem, i)
330
332
return memoryrefset! (
@@ -342,6 +344,7 @@ function setindexonce_atomic!(
342
344
val,
343
345
i:: Int ,
344
346
)
347
+ @_propagate_inbounds_meta
345
348
T = eltype (mem)
346
349
memref = memoryref (mem, i)
347
350
return Core. memoryrefsetonce! (
@@ -354,11 +357,13 @@ function setindexonce_atomic!(
354
357
end
355
358
356
359
function modifyindex_atomic! (mem:: GenericMemory , order:: Symbol , op, val, i:: Int )
360
+ @_propagate_inbounds_meta
357
361
memref = memoryref (mem, i)
358
362
return Core. memoryrefmodify! (memref, op, val, order, @_boundscheck )
359
363
end
360
364
361
365
function swapindex_atomic! (mem:: GenericMemory , order:: Symbol , val, i:: Int )
366
+ @_propagate_inbounds_meta
362
367
T = eltype (mem)
363
368
memref = memoryref (mem, i)
364
369
return Core. memoryrefswap! (
@@ -377,6 +382,7 @@ function replaceindex_atomic!(
377
382
desired,
378
383
i:: Int ,
379
384
)
385
+ @_propagate_inbounds_meta
380
386
T = eltype (mem)
381
387
memref = memoryref (mem, i)
382
388
return Core. memoryrefreplace! (
0 commit comments