1. updating instance variables are
declared unsafe
Proposal #2
Slide 90
Slide 90 text
1. updating instance variables are
declared unsafe
2. any thread-safe Ruby code needs to
treat them as such
Proposal #2
Slide 91
Slide 91 text
Proposal #2
Slide 92
Slide 92 text
3. implementations like YARV can still
provide safe semantics due to
technical limitation
Proposal #2
Slide 93
Slide 93 text
3. implementations like YARV can still
provide safe semantics due to
technical limitation
4. but code that relies on such behavior
works by “accident”
Proposal #2
Slide 94
Slide 94 text
Proposal #2
Slide 95
Slide 95 text
5. add AtomicReference to thread.rb
Proposal #2
Slide 96
Slide 96 text
5. add AtomicReference to thread.rb
Proposal #2
AtomicReference#new(&default)
AtomicReference#set(value)
AtomicReference#get()