You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2011/07/14 16:23:00 UTC

[jira] [Updated] (CAY-1567) BaseQueryMetadata.setPrefetches() causes a shared lock

     [ https://issues.apache.org/jira/browse/CAY-1567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrus Adamchik updated CAY-1567:
---------------------------------

    Fix Version/s:     (was: 3.1M3)
                   3.1M2

> BaseQueryMetadata.setPrefetches() causes a shared lock
> ------------------------------------------------------
>
>                 Key: CAY-1567
>                 URL: https://issues.apache.org/jira/browse/CAY-1567
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Core Library
>    Affects Versions: 3.0.1, 3.1M2
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>            Priority: Minor
>             Fix For: 3.0.2, 3.1M2
>
>
> As reported here http://markmail.org/message/rac2vcvglhuzkhec , a call to Util.cloneViaSerialization when setting query prefetches can cause a shared lock on the JDK class java.io.ObjectStreamClass$EntryFuture that can degrade performance under load. So we should implement lock free cloning ourselves, which is rather trivial.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira