Re:Crafting Interpreters: Strings
by _old_dude_ on Monday September 24, 2018 @05:29PM
(#18061622)
As you said, only the top pointer need a CAS.
If you want more info, the is a good presentation by Christine Flood about Shenandoah at FOSDEM 2017 https://archive.fosdem.org/2017/schedule/event/shenandoah/
This might be a naive question, but how do you do all that redirection under concurrent accesses? Clearly that amount of rewiring isn't going to be atomic? Or am I misunderstand and the only change that needs to be atomic is the top-of-structure redirection?