mirror of https://github.com/apache/lucene.git
LUCENE-3892: null these massive static data structures out so they can be GC'ed and wont OOM tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1365257 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3e795bf830
commit
ab2a7e389f
|
@ -43,6 +43,7 @@ import org.apache.lucene.util.Constants;
|
||||||
import org.apache.lucene.util.FixedBitSet;
|
import org.apache.lucene.util.FixedBitSet;
|
||||||
import org.apache.lucene.util.LuceneTestCase;
|
import org.apache.lucene.util.LuceneTestCase;
|
||||||
import org.apache.lucene.util._TestUtil;
|
import org.apache.lucene.util._TestUtil;
|
||||||
|
import org.junit.AfterClass;
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
|
|
||||||
/* NOTE: This test focuses on the postings
|
/* NOTE: This test focuses on the postings
|
||||||
|
@ -316,6 +317,15 @@ public class TestPostingsFormat extends LuceneTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@AfterClass
|
||||||
|
public static void afterClass() throws Exception {
|
||||||
|
allTerms = null;
|
||||||
|
fieldInfos = null;
|
||||||
|
fields = null;
|
||||||
|
fieldsLive = null;
|
||||||
|
globalLiveDocs = null;
|
||||||
|
}
|
||||||
|
|
||||||
// TODO maybe instead of @BeforeClass just make a single test run: build postings & index & test it?
|
// TODO maybe instead of @BeforeClass just make a single test run: build postings & index & test it?
|
||||||
|
|
||||||
private FieldInfos currentFieldInfos;
|
private FieldInfos currentFieldInfos;
|
||||||
|
|
Loading…
Reference in New Issue