You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Jochen Kemnade (JIRA)" <ji...@apache.org> on 2017/05/19 08:16:04 UTC
[jira] [Updated] (GROOVY-7811) Block frequently occurs Groovy
multithreading capabilities of mixin
[ https://issues.apache.org/jira/browse/GROOVY-7811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jochen Kemnade updated GROOVY-7811:
-----------------------------------
Attachment: 0001-GROOVY-7811-move-constructor-out-of-the-synchronized.patch
I stumbled upon this from GROOVY-7535. Moving the creation of the new {{SwitchPoint}} out of the {{synchronized}} block removed nearly all of the locking there and cut the execution time of the Categories stress test in half. Patch attached.
> Block frequently occurs Groovy multithreading capabilities of mixin
> -------------------------------------------------------------------
>
> Key: GROOVY-7811
> URL: https://issues.apache.org/jira/browse/GROOVY-7811
> Project: Groovy
> Issue Type: Bug
> Affects Versions: 2.4.6
> Reporter: 刘新宇
> Attachments: 0001-GROOVY-7811-move-constructor-out-of-the-synchronized.patch
>
>
> Groovy:2.4.6
> please see : http://stackoverflow.com/questions/36419161/block-frequently-occurs-groovy-multithreading-capabilities-of-mixin#comment60481097_36419161
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)