[DOC] Make clear that current behavior is not ideal

This commit is contained in:
Daisuke Aritomo 2025-05-10 16:35:02 +09:00 committed by Benoit Daloze
parent a51b4a86fc
commit 29b3d683fb
Notes: git 2025-05-10 17:32:34 +00:00

8
gc.c
View File

@ -1545,9 +1545,11 @@ os_obj_of(VALUE of)
* 2.2250738585072e-308
* Total count: 7
*
* When the process is in multi-Ractor mode (when <code>Ractor.new</code>
* has been called within the process at least once), this method yields
* Ractor-shareable objects only.
* Due to implementation limitations, this method will not yield
* Ractor-unshareable the process is in multi-Ractor mode (when
* <code>Ractor.new</code> has been called within the process at least once).
* This behavior is not considered ideal.
* See https://bugs.ruby-lang.org/issues/19387 for more information.
*
* a = 12345678987654321 # shareable
* b = [].freeze # shareable