summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2024-07-18 14:06:44 +0900
committerYuichiro Kaneko <spiketeika@gmail.com>2024-07-18 19:19:27 +0900
commit231a9acc15979087356bd2284a0572ad5101326a (patch)
treee7308b9f480f61de52a99bd73d965533fc9315d9 /test/ruby
parent86c99a8d14daa15b1b5f6c99697630aa3abb7d5d (diff)
Free `data` of `struct rb_parser_ary` in `rb_parser_ary_free`
For example: 10.times do 100_000.times do RubyVM::AbstractSyntaxTree.parse("x = 1 + 2 +", keep_tokens: true) rescue SyntaxError end puts `ps -o rss= -p #{$$}` end Before: 28944 44816 60720 76496 92336 108160 123968 139808 155648 171408 After: 11984 12704 12816 12832 13072 13088 13088 13136 13136 13152
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11193
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions