Skip to content
Permalink
Browse files

Use full truffleruby name

  • Loading branch information...
pitr-ch committed Feb 21, 2018
1 parent 90be641 commit eb1bd1d540fe19c105c6d23686c93120ddf407a4
@@ -5,7 +5,7 @@
when Concurrent.on_cruby?
require 'gvl_future'
GVLFuture
when Concurrent.on_rbx? || Concurrent.on_truffle?
when Concurrent.on_rbx? || Concurrent.on_truffleruby?
require 'rbx_future'
RBXFuture
when Concurrent.on_jruby?
@@ -5,7 +5,7 @@
when Concurrent.on_cruby?
require 'gvl_future'
GVLFuture
when Concurrent.on_rbx? || Concurrent.on_truffle?
when Concurrent.on_rbx? || Concurrent.on_truffleruby?
require 'rbx_future'
RBXFuture
when Concurrent.on_jruby?
@@ -5,7 +5,7 @@
when Concurrent.on_cruby?
require 'gvl_future'
GVLFuture
when Concurrent.on_rbx? || Concurrent.on_truffle?
when Concurrent.on_rbx? || Concurrent.on_truffleruby?
require 'rbx_future'
RBXFuture
when Concurrent.on_jruby?
@@ -5,7 +5,7 @@
when Concurrent.on_cruby?
require 'gvl_future'
GVLFuture
when Concurrent.on_rbx? || Concurrent.on_truffle?
when Concurrent.on_rbx? || Concurrent.on_truffleruby?
require 'rbx_future'
RBXFuture
when Concurrent.on_jruby?
@@ -32,7 +32,7 @@ class Array < ::Array
include JRuby::Synchronized
end

elsif Concurrent.on_rbx? || Concurrent.on_truffle?
elsif Concurrent.on_rbx? || Concurrent.on_truffleruby?
require 'monitor'
require 'concurrent/thread_safe/util/array_hash_rbx'

@@ -23,7 +23,7 @@ class Hash < ::Hash
include JRuby::Synchronized
end

elsif Concurrent.on_rbx? || Concurrent.on_truffle?
elsif Concurrent.on_rbx? || Concurrent.on_truffleruby?
require 'monitor'
require 'concurrent/thread_safe/util/array_hash_rbx'

@@ -15,7 +15,7 @@ module Collection
when Concurrent.on_cruby?
require 'concurrent/collection/map/mri_map_backend'
MriMapBackend
when Concurrent.on_rbx? || Concurrent.on_truffle?
when Concurrent.on_rbx? || Concurrent.on_truffleruby?
require 'concurrent/collection/map/atomic_reference_map_backend'
AtomicReferenceMapBackend
else
@@ -33,7 +33,7 @@ class Set < ::Set
include JRuby::Synchronized
end

elsif Concurrent.on_rbx? || Concurrent.on_truffle?
elsif Concurrent.on_rbx? || Concurrent.on_truffleruby?
require 'monitor'
require 'concurrent/thread_safe/util/array_hash_rbx'

@@ -12,7 +12,7 @@ module Synchronization
JRubyLockableObject
when Concurrent.on_rbx?
RbxLockableObject
when Concurrent.on_truffle?
when Concurrent.on_truffleruby?
MriMutexLockableObject
else
warn 'Possibly unsupported Ruby implementation'
@@ -10,7 +10,7 @@ module Synchronization
JRubyObject
when Concurrent.on_rbx?
RbxObject
when Concurrent.on_truffle?
when Concurrent.on_truffleruby?
TruffleObject
else
MriObject
@@ -25,7 +25,7 @@ module Synchronization
MriAttrVolatile
when Concurrent.on_jruby?
JRubyAttrVolatile
when Concurrent.on_rbx? || Concurrent.on_truffle?
when Concurrent.on_rbx? || Concurrent.on_truffleruby?
RbxAttrVolatile
else
MriAttrVolatile
@@ -19,7 +19,7 @@ def on_rbx?
ruby_engine == 'rbx'
end

def on_truffle?
def on_truffleruby?
ruby_engine == 'truffleruby'
end

@@ -76,7 +76,7 @@ def physical_processor_count
def compute_processor_count
if Concurrent.on_jruby?
java.lang.Runtime.getRuntime.availableProcessors
elsif Concurrent.on_truffle?
elsif Concurrent.on_truffleruby?
Truffle::Primitive.logical_processors
else
os_name = RbConfig::CONFIG["target_os"]

0 comments on commit eb1bd1d

Please sign in to comment.
You can’t perform that action at this time.