diff options
author | Alissa Rao <lymia@lymiahugs.com> | 2014-10-14 18:06:53 -0500 |
---|---|---|
committer | Alissa Rao <lymia@lymiahugs.com> | 2014-10-15 17:59:53 -0500 |
commit | d33ba3bb9c5f09374dd585cc6f0ff6294b98fc6a (patch) | |
tree | bc3e1763d20226a5a2afbea1036ff0b485f6047d /.mailmap | |
parent | 2b5df373638d08204b71258928289f6b39e25d5f (diff) | |
download | scala-d33ba3bb9c5f09374dd585cc6f0ff6294b98fc6a.tar.gz scala-d33ba3bb9c5f09374dd585cc6f0ff6294b98fc6a.tar.bz2 scala-d33ba3bb9c5f09374dd585cc6f0ff6294b98fc6a.zip |
SI-8910 BitSet sometimes uses exponential memory.
Because of an off-by-one error in scala.collection.mutable.BitSet, where a
function (ensureCapacity) is passed a list length instead of an index, when
^=, &=, |=, or &~= are passed BitSets with the same internal capacity as the
set the method is being invoked on, the size of the first BitSet is needlessly
doubled.
This patch simply changes the ensureCapacity calls to pass the last index of
the list, instead of the raw length. In addition, add documentation to
ensureCapacity to try and stop something similar from happening in the future.
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions