1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/objspace
John Hawthorn 05b1944c53 objspace: Hide identhash containing internal objs
Inside ObjectSpace.reachable_objects_from we keep an internal identhash
in order to de-duplicate reachable objects when wrapping them as
InternalObject. Previously this hash was not hidden, making it possible
to leak references to those internal objects to Ruby if using
ObjectSpace.each_object.

This commit solves this by hiding the hash. To simplify collection of
values, we instead now just use the hash as a set of visited objects,
and collect an Array (not hidden) of values to be returned.
2022-02-09 17:32:43 -08:00
..
lib ext/objspace/lib/objspace/trace.rb: Remove the original Kernel#p 2021-05-14 15:39:57 +09:00
depend Update dependencies 2021-11-21 16:21:18 +09:00
extconf.rb
object_tracing.c [Bug #18382] Fix crash in compaction for ObjectSpace.trace_object_allocations 2021-12-02 13:06:44 -05:00
objspace.c objspace: Hide identhash containing internal objs 2022-02-09 17:32:43 -08:00
objspace.h
objspace_dump.c Add the size pool slot size to the output of ObjectSpace.dump/dump_all 2022-02-03 15:07:35 -05:00