]> source.dussan.org Git - jgit.git/commit
Remove workaround for bug in Java's ReferenceQueue 45/104245/2
authorMatthias Sohn <matthias.sohn@sap.com>
Sat, 2 Sep 2017 22:06:59 +0000 (00:06 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 4 Sep 2017 12:44:12 +0000 (14:44 +0200)
commit39b193b6f4b72bd6c08170f53001e7cfdaa51318
tree1b5ca023f07f162cb79b2519c90b0787cbd8534e
parent7317432c313f10a26e92eea50bcbf87d46a53bf7
Remove workaround for bug in Java's ReferenceQueue

Sun's Java 5, 6, 7 implementation had a bug [1] where a Reference can be
enqueued and dequeued twice on the same reference queue due to a race
condition within ReferenceQueue.enqueue(Reference).

This bug was fixed for Java 8 [2] hence remove the workaround.

[1] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6837858
[2] http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/858c75eb83b5

Change-Id: I2deeb607e3d237f9f825a207533acdee305c7e73
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/WindowCache.java