neo4j/neo4j — pull request #1324 by jakewins (2013-10-17 13:28:11+00:00)
Title: This fixes a race condition in the Weak and Soft reference caches.

o Get-or-put now guards for GC collecting the reference while we are handling it
o Consolidated Soft and Weak LRU caches into one parent class and factories instead, reducing duplication.