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
Jean Boussier fbba6bd4e3 Parse ObjectSpace.dump_all / dump arguments in Ruby to avoid allocation noise
[Feature #17045] ObjectSpace.dump_all should allocate as little as possible in the GC heap

Up until this commit ObjectSpace.dump_all allocates two Hash because of `rb_scan_args`.

It also can allocate a `File` because of `rb_io_get_write_io`.

These allocations are problematic because `dump_all` dumps the Ruby
heap, so it should try modify as little as possible what it is
observing.
2020-09-15 09:18:13 -07:00
..
lib Parse ObjectSpace.dump_all / dump arguments in Ruby to avoid allocation noise 2020-09-15 09:18:13 -07:00
depend Optimize ObjectSpace.dump_all 2020-09-09 11:11:36 -07:00
extconf.rb
object_tracing.c Fix ObjectSpace.trace_object_allocations_stop to not raise if the tracepoint were not initialized 2020-08-19 08:13:09 -07:00
objspace.c RHASH_TBL: is now ext-only 2020-08-19 15:10:53 +09:00
objspace.h
objspace_dump.c Parse ObjectSpace.dump_all / dump arguments in Ruby to avoid allocation noise 2020-09-15 09:18:13 -07:00