Better HN
topnewbestaskshowjobs
Log inSign up

yfractal

2 karma · joined Jul 3, 2023 (3y ago) · 2 submissions

Submissions

comment 1y ago · link · parent

Have this actually, you can check the link.

comment 1y ago · link · parent

I am the author of this article. Sorry for the misleading article.

First, I admitted I didn't describe the problem clearly. And now, I'd like to have some explanation.

In the intro, the issue with rbspy is that it reads invalid addresses, see this https://github.com/rbspy/rbspy/blob/8d501946f75335154c493473....

Data race refers to incorrect data, not an invalid address error.

And the citations, they are 2, one is the Ruby memory model(the third ref), and then a MIT course. I referred to this because it supposes 64-bit aligned memory reading is atomic, but I can't find other sources. And if you read the MIT course reference, you will see it's about RCU, and the RCU is valid only when 64-bit memory operations are atomic.

Yeah, sometimes, the compiler may compile a 64-bit memory access into two instructions, such as Rust, but it's not Ruby. It should be fine not consider this.