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

Updating an aligned pointer is atomic. If you haven’t tagged it by moving bits to a neighboring word.


I see. Yeah, you would either have to add the tagging to the upper bits of the pointer itself or concede that updates to a tagged type is not atomic. I feel like the latter is fine in most every scenario I've encountered in Rust (thanks to borrow checker rules) but in other languages the same cannot be said.




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

Search: