Comment by chowells Comment by chowells a day ago 1 reply Copy Link View on Hacker News Does the memory model guarantee that double-check locking will be correct? I don't actually know for ruby.
Copy Link JamesSwift a day ago Collapse Comment - I think it wouldnt even be a consideration on this since we arent initializing the store here only accessing the key. And theres already the check-then-set race condition in that scenario so I think it is doubly fine. Reply View | 0 replies
I think it wouldnt even be a consideration on this since we arent initializing the store here only accessing the key. And theres already the check-then-set race condition in that scenario so I think it is doubly fine.