Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: