From dev-return-4224-archive-asf-public=cust-asf.ponee.io@groovy.apache.org Sat Feb 24 04:02:39 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 8158B180652 for ; Sat, 24 Feb 2018 04:02:39 +0100 (CET) Received: (qmail 63219 invoked by uid 500); 24 Feb 2018 03:02:38 -0000 Mailing-List: contact dev-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 dev@groovy.apache.org Received: (qmail 63200 invoked by uid 99); 24 Feb 2018 03:02:37 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Feb 2018 03:02:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 9FCF6C2BDF for ; Sat, 24 Feb 2018 03:02:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.471 X-Spam-Level: *** X-Spam-Status: No, score=3.471 tagged_above=-999 required=6.31 tests=[FORGED_HOTMAIL_RCVD2=1.187, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id USzwQ2FenAa6 for ; Sat, 24 Feb 2018 03:02:34 +0000 (UTC) Received: from n5.nabble.com (n5.nabble.com [162.253.133.81]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 8550E5F24A for ; Sat, 24 Feb 2018 03:02:34 +0000 (UTC) Received: from n5.nabble.com (localhost [127.0.0.1]) by n5.nabble.com (Postfix) with ESMTP id 468874654E40 for ; Fri, 23 Feb 2018 20:02:28 -0700 (MST) Date: Fri, 23 Feb 2018 20:02:28 -0700 (MST) From: Daniel Sun To: dev@groovy.incubator.apache.org Message-ID: <1519441348286-0.post@n5.nabble.com> In-Reply-To: References: Subject: Re: Thread contention on GroovyClassLoader sourceCache MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Divij, `ConcurrentHashMap` does not provide atomic operation(e.g. check-and-put) util Java8. So I have achieved a fine-grained access control to these caches[1], which is available in 2.5+. 2.5 beta-3[2] is out and RC will be released soon, so please give it a try :) Cheers, Daniel.Sun [1] https://github.com/apache/groovy/blob/GROOVY_2_5_X/src/main/groovy/groovy/lang/GroovyClassLoader.java#L105 [2] https://dl.bintray.com/groovy/maven/apache-groovy-binary-2.5.0-beta-3.zip -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html