From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id 62C471960014 for ; Tue, 30 Jun 2015 12:42:38 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (smtp.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 674ABB5D92D for ; Tue, 30 Jun 2015 13:07:54 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id D8D9B97A826 for ; Tue, 30 Jun 2015 13:07:55 +0900 (JST) X-Virus-Scanned: amavisd-new at nagaokaut.ac.jp Authentication-Results: funfun.nagaokaut.ac.jp (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=sendgrid.me Received: from funfun.nagaokaut.ac.jp ([127.0.0.1]) by funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EZ2Q5Z0KQVoL for ; Tue, 30 Jun 2015 13:07:55 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 9D73197A820 for ; Tue, 30 Jun 2015 13:07:55 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 2668D95243A for ; Tue, 30 Jun 2015 13:07:54 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 78F121204EE; Tue, 30 Jun 2015 13:07:54 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o10.shared.sendgrid.net (o10.shared.sendgrid.net [173.193.132.135]) by neon.ruby-lang.org (Postfix) with ESMTPS id E3304120419 for ; Tue, 30 Jun 2015 13:07:49 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=86KekyZQ6vxgMHv5gLgn/CnUWaY=; b=ZJO7OnUDtj8oGc9ezP QmxfUoH6LAGGw9gYH7AyFDqMA5/Bphjy8Q5dldqyJp22kzznoqG5D0/ua/1N3IgQ bTh+HsHZAjw+EFVyVbZF9OfcPDrP2Y8g9MbsbBE8U/ooQnh+7z1MRM5dAmtF9jil gpObaAUA27JmFEdJbSOnTCzeI= Received: by filter0494p1mdw1.sendgrid.net with SMTP id filter0494p1mdw1.21325.55921613B 2015-06-30 04:07:47.564880598 +0000 UTC Received: from herokuapp.com (ec2-54-145-208-181.compute-1.amazonaws.com [54.145.208.181]) by ismtpd-010 (SG) with ESMTP id 14e42a63c21.5afe.6bd04c for ; Tue, 30 Jun 2015 04:07:47 +0000 (UTC) Date: Tue, 30 Jun 2015 04:07:47 +0000 From: usa@garbagecollect.jp To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 44394 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11200 X-Redmine-Issue-Author: ko1 X-Redmine-Issue-Assignee: ko1 X-Redmine-Sender: usa X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS7t6eO8DOsWYIUa5AGsf7tORH0NASVTZCSR3n FpwnNVY2ynju7/pQAL9eaLlif78nMf3ms8RpeFBIxngh+9/0pQbgkSDk11/HhF4dP4SPD44dsuZ42J Gfg13YpTafIs5FqtMrtXIJXpaIeB9Fdnv0EG X-ML-Name: ruby-core X-Mail-Count: 69800 Subject: [ruby-core:69800] [Ruby trunk - Bug #11200] Memory leak of method entries X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" 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/