kylin-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "XiaoXiang Yu (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (KYLIN-3578) Do not synchronize on the intrinsic locks of high-level concurrency objects
Date Tue, 25 Sep 2018 01:19:00 GMT

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

XiaoXiang Yu reassigned KYLIN-3578:
-----------------------------------

    Assignee: XiaoXiang Yu

> Do not synchronize on the intrinsic locks of high-level concurrency objects
> ---------------------------------------------------------------------------
>
>                 Key: KYLIN-3578
>                 URL: https://issues.apache.org/jira/browse/KYLIN-3578
>             Project: Kylin
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: XiaoXiang Yu
>            Priority: Major
>
> From core-common/src/main/java/org/apache/kylin/common/util/MemoryBudgetController.java
:
> {code}
>     private final ReentrantLock lock = new ReentrantLock();
> ...
>             synchronized (lock) {
> {code}
> See the following for why such practice is to be avoided:
> https://wiki.sei.cmu.edu/confluence/display/java/LCK03-J.+Do+not+synchronize+on+the+intrinsic+locks+of+high-level+concurrency+objects



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message