Method: ObjectSpace.reachable_objects_from_root
- Defined in:
- objspace.c
.reachable_objects_from_root ⇒ Hash
- MRI specific feature
-
Return all reachable objects from root.
858 859 860 861 862 863 864 865 866 867 868 869 |
# File 'objspace.c', line 858 static VALUE reachable_objects_from_root(VALUE self) { struct rofr_data data; VALUE hash = data.categories = rb_ident_hash_new(); data.last_category = 0; rb_objspace_reachable_objects_from_root(reachable_object_from_root_i, &data); rb_hash_foreach(hash, collect_values_of_values, hash); return hash; } |