From: usa@garbagecollect.jp
To: ruby-core@ruby-lang.org
Subject: [ruby-core:69800] [Ruby trunk - Bug #11200] Memory leak of method entries
Date: Tue, 30 Jun 2015 04:07:47 +0000 [thread overview]
Message-ID: <redmine.journal-53194.20150630040746.039c43c89b06930f@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-11200.20150530141615@ruby-lang.org
Issue #11200 has been updated by Usaku NAKAMURA.
Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: WONTFIX, 2.1: WONTFIX, 2.2: UNKNOWN
----------------------------------------
Bug #11200: Memory leak of method entries
https://bugs.ruby-lang.org/issues/11200#change-53194
* Author: Koichi Sasada
* Status: Closed
* Priority: Normal
* Assignee: Koichi Sasada
* ruby -v: 2.3dev
* Backport: 2.0.0: WONTFIX, 2.1: WONTFIX, 2.2: UNKNOWN
----------------------------------------
```ruby
def recur
Class.new{
define_method(:foo) do
recur
end
}.new.foo
end
begin
recur
rescue SystemStackError
retry
end
```
This program increase memory consumption because method entries in method frames (running method entries) are not freed when classes/modules are freed.
I will solve this issue by changing method frame data structures soon.
However, it will be very big change, it is difficult to apply 2.2 and before.
It is very rare case, so I don't think it is critical issue to fix older versions.
--
https://bugs.ruby-lang.org/
prev parent reply other threads:[~2015-06-30 3:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <redmine.issue-11200.20150530141615@ruby-lang.org>
2015-05-30 14:16 ` [ruby-core:69420] [Ruby trunk - Bug #11200] [Open] Memory leak of method entries ko1
2015-06-30 4:07 ` usa [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.ruby-lang.org/en/community/mailing-lists/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.journal-53194.20150630040746.039c43c89b06930f@ruby-lang.org \
--to=ruby-core@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).