News for hackers. Stuff that matters.
Re:Garbage Collection by YorickPeterse on Saturday November 30, 2019 @08:15PM (#21673161)
> increment of a pointer (and that is atomic, so no thread locking needed).

Nitpick (and mostly for others reading): incrementing the address of a pointer if done locally (as in, using a local variable of sorts) may be atomic, but storing the updated pointer somewhere may not. If a bump allocator wants to support concurrent allocations, it should make sure to use the right atomic operations (typically this just a compare-and-swap of the old pointer with the locally incremented one).

There are no comments on this comment yet.