jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
castor
  • castor
  • CASTOR-2940 Replace Hashtable and synchronized Ha...
  • CASTOR-3175

Various cleanup at org.castor.cache.hashbelt.*

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Sub-task Sub-task
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.3.2
  • Fix Version/s: 1.3.3rc1
  • Component/s: JDO
  • Labels:
    None
  • Number of attachments :
    1

Description

In org.castor.cache.hashbelt.*, some code should be cleaned up.
(1) ReentrantReadWrite.readLock(/WriteLock).lockInterruptibly is not useful, we should ReetrantReadWrite.readLock(/WriteLock) to simplify the code.
(2) Delete some local variables to simplify the code.
(3) Inline size() method to reduce get the readlock.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    patch-C3175-20110804.txt
    04/Aug/11 8:17 AM
    11 kB
    Wensheng Dou

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity

People

  • Assignee:
    Wensheng Dou
    Reporter:
    Wensheng Dou
Vote (0)
Watch (0)

Dates

  • Created:
    04/Aug/11 8:14 AM
    Updated:
    04/Aug/11 5:05 PM
    Resolved:
    04/Aug/11 5:05 PM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.