Subject: Re: [JGIT RFC PATCH 2/2] Rewrite WindowCache to be easier to follow and maintain

From: "Ferry Huberts (Pelagic)" <[email-masked]>
Date: Thu, 30 Apr 2009 09:34:55 +0200

Shawn O. Pearce wrote:
> Robin Rosenberg <[email-masked]> wrote:
>>> diff --git a/org.spearce.jgit/src/org/spearce/jgit/lib/OffsetCache.java b/org.spearce.jgit/src/org/spearce/jgit/lib/OffsetCache.java
>>> +	private void gc() {
>>> +		R r;
>>> +		while ((r = (R) queue.poll()) != null) {
>>> +			// Sun's Java 5 and 6 implementation have a bug where a Reference
>>> +			// can be enqueued and dequeued twice on the same reference queue
>>> +			// due to a race condition within ReferenceQueue.enqueue(Reference).
>> Reference to the official Sun bug? Might help if someone wants to
>> implement a flag to avoid this (if necessary...)
> 
> Actually, this is a new bug.  I tried looking through BugParade
> but nobody has mentioned or discovered this before.
> 
> I submitted a bug report yesterday, but they have yet to publish it.
> 

maybe you can also submit it to the OpenJDK folks? I have very bad
experiences with reporting java bugs to sun. I reported a few and
_never_ heard back from them, no publish of the bug, no reject, nothing.

Great work on rewriting this!
PS. still need your input on ignores :-)