From cadc8de0457a6f75bb7d343e6c21b92baea564c9 Mon Sep 17 00:00:00 2001 From: Holger Just Date: Tue, 9 Jul 2024 17:39:44 +0200 Subject: [PATCH] Update comment for JRuby variant of processor_count to reality --- lib/concurrent-ruby/concurrent/utility/processor_counter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/concurrent-ruby/concurrent/utility/processor_counter.rb b/lib/concurrent-ruby/concurrent/utility/processor_counter.rb index 6724457f..007668ae 100644 --- a/lib/concurrent-ruby/concurrent/utility/processor_counter.rb +++ b/lib/concurrent-ruby/concurrent/utility/processor_counter.rb @@ -128,8 +128,8 @@ def compute_cpu_quota # `java.lang.Runtime.getRuntime.availableProcessors` will be used. According # to the Java documentation this "value may change during a particular # invocation of the virtual machine... [applications] should therefore - # occasionally poll this property." Subsequently the result will NOT be - # memoized under JRuby. + # occasionally poll this property." We still memoize this value once under + # JRuby. # # Otherwise Ruby's Etc.nprocessors will be used. #