Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2D25A200B9C for ; Mon, 10 Oct 2016 11:18:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2BCE3160AF6; Mon, 10 Oct 2016 09:18:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 75820160AE1 for ; Mon, 10 Oct 2016 11:18:21 +0200 (CEST) Received: (qmail 42728 invoked by uid 500); 10 Oct 2016 09:18:20 -0000 Mailing-List: contact notifications-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list notifications@groovy.apache.org Received: (qmail 42698 invoked by uid 99); 10 Oct 2016 09:18:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Oct 2016 09:18:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 84A002C0D52 for ; Mon, 10 Oct 2016 09:18:20 +0000 (UTC) Date: Mon, 10 Oct 2016 09:18:20 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: notifications@groovy.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GROOVY-7646) Classes generated by Eval() never collected from Permgen/Metaspace MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 10 Oct 2016 09:18:22 -0000 [ https://issues.apache.org/jira/browse/GROOVY-7646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15561755#comment-15561755 ] ASF GitHub Bot commented on GROOVY-7646: ---------------------------------------- GitHub user jochenberger opened a pull request: https://github.com/apache/groovy/pull/444 GROOVY-7646: allow classes to be removed from the ClassInfo cache This is the first part of what @jwagenleitner did for #325. You can merge this pull request into a Git repository by running: $ git pull https://github.com/jochenberger/groovy classinfo-remove Alternatively you can review and apply these changes as the patch at: https://github.com/apache/groovy/pull/444.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #444 ---- commit 94a3b08bd0ac9ebc045277bdd4bfe0e71d92f26c Author: Jochen Kemnade Date: 2016-10-10T09:15:55Z GROOVY-7646: allow classes to be removed from the ClassInfo cache ---- > Classes generated by Eval() never collected from Permgen/Metaspace > ------------------------------------------------------------------ > > Key: GROOVY-7646 > URL: https://issues.apache.org/jira/browse/GROOVY-7646 > Project: Groovy > Issue Type: Bug > Components: groovy-runtime > Affects Versions: 2.4.5 > Environment: Oracle jdk8u51 and jdk8u66 > Reporter: Isaac Dooley > > It seems classes generated by Eval() are never collected, thus causing PermGen or Metaspace to fill up and the JVM to hang/crash. > Reproduce by running the following code, after setting java option {{-XX:MaxMetaspaceSize=50m}}. > {code} > 100000.times{ x -> assert 10 == Eval.x(2, 'x * 4 + 2;') } > {code} > After about 2700 calls to Eval the program will crash with OutOfMemoryError, -- This message was sent by Atlassian JIRA (v6.3.4#6332)