summaryrefslogtreecommitdiff
path: root/lib/English.gemspec
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2024-05-01 15:36:36 +0900
committerYuichiro Kaneko <spiketeika@gmail.com>2024-05-02 10:14:54 +0900
commitd22dfce1cc5e5425e062dc7883b522ef85fe06db (patch)
treefba19866835ba4b52cef60f9195fc91028c126a3 /lib/English.gemspec
parent5108bed5130be00fd4df45eb12cc8ceee4533cf0 (diff)
Fix memory leak of `rb_ast_t` in parserHEADmaster
Do not allocate `rb_ast_t` in `ast_alloc` to avoid memory leak. For example: 10.times do 100_000.times do eval("") end puts `ps -o rss= -p #{$$}` end Before: 17568 20960 24096 27808 31008 34160 37312 40464 43568 46816 After: 14432 14448 14496 14576 14592 15072 15072 15072 15072 15088
Diffstat (limited to 'lib/English.gemspec')
0 files changed, 0 insertions, 0 deletions