am 042a301f: Merge "Run GC when needed, instead of too late."

* commit '042a301f1ca071d30f6c932c4aae3a217c9e1a59':
  Run GC when needed, instead of too late.
main
Jean Chalard 2013-12-17 01:46:06 -08:00 committed by Android Git Automerger
commit e573cc36f9
1 changed files with 3 additions and 3 deletions

View File

@ -91,11 +91,11 @@ public class Ver4DictEncoder implements DictEncoder {
for (final WeightedString word1 : word0.mBigrams) {
binaryDict.addBigramWords(word0.mWord, word1.mWord, word1.mFrequency,
0 /* timestamp */);
}
if (binaryDict.needsToRunGC(true /* mindsBlockByGC */)) {
binaryDict.flushWithGC();
}
}
}
binaryDict.flushWithGC();
binaryDict.close();
}