[ 
https://issues.apache.org/jira/browse/HADOOP-10169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13850209#comment-13850209
 ] 

Jing Zhao commented on HADOOP-10169:
------------------------------------

Is it possible that multiple threads call getMetrics(MetricsCollector, boolean) 
around the same time, which causes getGcInfo to be called concurrently? In that 
case, we still need the synchronized here?

> remove the unnecessary  synchronized in JvmMetrics class
> --------------------------------------------------------
>
>                 Key: HADOOP-10169
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10169
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: metrics
>    Affects Versions: 3.0.0, 2.2.0
>            Reporter: Liang Xie
>            Assignee: Liang Xie
>            Priority: Minor
>         Attachments: HADOOP-10169.txt
>
>
> When i looked into a HBase JvmMetric impl, just found this synchronized seems 
> not essential.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to