We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7bc7d0 commit 494652eCopy full SHA for 494652e
lib/concurrent/utility/processor_counter.rb
@@ -75,6 +75,8 @@ def physical_processor_count
75
def compute_processor_count
76
if Concurrent.on_jruby?
77
java.lang.Runtime.getRuntime.availableProcessors
78
+ elsif Concurrent.on_truffle?
79
+ Truffle::Primitive.logical_processors
80
else
81
os_name = RbConfig::CONFIG["target_os"]
82
if os_name =~ /mingw|mswin/
0 commit comments