diff options
author | Jean Boussier <jean.boussier@gmail.com> | 2020-09-10 13:17:53 +0200 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2020-09-15 09:18:13 -0700 |
commit | fbba6bd4e3dff7a61965208fecae908f10c4edbe (patch) | |
tree | 5ff5a909649db3023f1b1e33531b10eb016668a4 /spec/ruby/core/binding | |
parent | a0d50465dee5fe1bf1dc916f35cb681b0825aced (diff) | |
download | ruby-fbba6bd4e3dff7a61965208fecae908f10c4edbe.tar.gz |
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.
Diffstat (limited to 'spec/ruby/core/binding')
0 files changed, 0 insertions, 0 deletions