Skip to content

Commit 14aa23b

Browse files
committed
Use the AtomicReference map backend on Truffle.
1 parent 86e9071 commit 14aa23b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/concurrent/map.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ module Collection
1818
when 'rbx'
1919
require 'concurrent/collection/map/atomic_reference_map_backend'
2020
AtomicReferenceMapBackend
21+
when 'jruby+truffle'
22+
require 'concurrent/collection/map/atomic_reference_map_backend'
23+
AtomicReferenceMapBackend
2124
else
2225
warn 'Concurrent::Map: unsupported Ruby engine, using a fully synchronized Concurrent::Map implementation' if $VERBOSE
2326
require 'concurrent/collection/map/synchronized_map_backend'

0 commit comments

Comments
 (0)