]> source.dussan.org Git - jgit.git/commit
DHT: Fix thread-safety issue in AbstractWriteBuffer 91/3591/1
authorShawn O. Pearce <spearce@spearce.org>
Fri, 27 May 2011 00:19:30 +0000 (17:19 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 31 May 2011 15:58:45 +0000 (08:58 -0700)
commit042a66fe8c2feef7b831b1999b8cd6e9a0181944
tree51296b4940709e31d5abef74c1c5037fc02dffbb
parent0a39fb2ab65dfdbfbf8022cfdfc3975eba7ac6f2
DHT: Fix thread-safety issue in AbstractWriteBuffer

There is a data corruption issue with the 'running' list if a
background thread schedules something onto the buffer while the
application thread is also using it.

Change-Id: I5ba78b98b6632965d677a9c8f209f0cf8320cc3d
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/spi/util/AbstractWriteBuffer.java