Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tweak the code a bit, since rubinius/rubinius#1940 has been fixed.

  • Loading branch information...
commit bd2b92585eb5a73c1949d5441900cea5f0b1ae83 1 parent 3bc9374
@thedarkone authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/thread_safe/atomic_reference_cache_backend.rb
View
2  lib/thread_safe/atomic_reference_cache_backend.rb
@@ -388,7 +388,7 @@ def compute_if_absent(key)
current_table = table || initialize_table
while true
if !(node = current_table.volatile_get(i = current_table.hash_to_index(hash)))
- succeeded, new_value = current_table.try_to_cas_in_computed(i, hash, key) { yield }
+ succeeded, new_value = current_table.try_to_cas_in_computed(i, hash, key) { raise 'THIS_MIGHT_DEADLOCK' }
if succeeded
increment_size
return new_value
Please sign in to comment.
Something went wrong with that request. Please try again.