Ractor.store_if_absent should not warn

```ruby
$VERBOSE = true

Ractor.store_if_absent :key do
end #=> warning: the block passed to 'Ractor.store_if_absent' defined at <internal:ractor>:474 may be ignored
```
This commit is contained in:
Koichi Sasada 2025-12-04 14:29:35 +09:00 committed by Takashi Kokubun
parent dd0dfecc36
commit e4abacc533

View File

@ -872,6 +872,7 @@ class Ractor
# }.map(&:value).uniq.size #=> 1 and f() is called only once
#
def self.store_if_absent(sym)
Primitive.attr! :use_block
Primitive.ractor_local_value_store_if_absent(sym)
end