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

Arpit Agarwal updated HADOOP-13466:
-----------------------------------
    Description: 
Introduce an AutoCloseableLock class that allows using a RentrantLock with 
try-with-resources syntax.

The lock class is lightweight and performs no extra object allocations in the 
lock acquire/release path.

  was:Add a separate lock class object into util, such that we can replace 
using class object lock. This would make it easier for us to understand locking 
behaviors. e.g., we may easily instrument the new lock class for better 
understanding of locking overhead.


> Add an AutoCloseableLock class
> ------------------------------
>
>                 Key: HADOOP-13466
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13466
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Chen Liang
>            Assignee: Chen Liang
>         Attachments: HADOOP-13466.001.patch
>
>
> Introduce an AutoCloseableLock class that allows using a RentrantLock with 
> try-with-resources syntax.
> The lock class is lightweight and performs no extra object allocations in the 
> lock acquire/release path.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to