]> source.dussan.org Git - jgit.git/commit
Fix DeltaTask infinite loop 71/28071/1
authorHugo Arès <hugo.ares@ericsson.com>
Thu, 5 Jun 2014 19:16:26 +0000 (15:16 -0400)
committerHugo Arès <hugo.ares@ericsson.com>
Thu, 5 Jun 2014 19:20:04 +0000 (15:20 -0400)
commitd439c8dfe5ec521fc0f66cf956d9a5c7e63cadd3
tree970c510af81acce1d7e30dd011f8546947791d32
parent64b0531c35674df21ed02ab96d5f5bc6f5af7052
Fix DeltaTask infinite loop

DeltaTask$Block.partitionTask was doing an infinite loop if number of
threads was greater than the totalWeight. The weightPerThread was 0
which was causing the infinite loop. Set the weightPerThread to a
minimal value of one.

Bug: 420915
Change-Id: Ia8e3ad956d53d8193937b7fa1bc19aafde9767ff
Signed-off-by: Hugo Arès <hugo.ares@ericsson.com>
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/DeltaTask.java