|
18 | 18 |
|
19 | 19 | import java.io.IOException; |
20 | 20 | import java.util.Arrays; |
21 | | -import java.util.List; |
22 | 21 | import java.util.Set; |
23 | | -import org.apache.lucene.document.IntPoint; |
24 | | -import org.apache.lucene.document.SortedNumericDocValuesField; |
25 | | -import org.apache.lucene.index.IndexWriter; |
26 | 22 | import org.apache.lucene.index.PointValues.IntersectVisitor; |
27 | 23 | import org.apache.lucene.index.PointValues.Relation; |
28 | 24 | import org.apache.lucene.store.Directory; |
|
32 | 28 | import org.apache.lucene.tests.util.LuceneTestCase; |
33 | 29 | import org.apache.lucene.tests.util.TestUtil; |
34 | 30 | import org.apache.lucene.util.CollectionUtil; |
35 | | -import org.apache.lucene.util.Constants; |
36 | 31 |
|
37 | 32 | public class TestDocIdsWriter extends LuceneTestCase { |
38 | 33 |
|
@@ -169,23 +164,4 @@ public Relation compare(byte[] minPackedValue, byte[] maxPackedValue) { |
169 | 164 | } |
170 | 165 | dir.deleteFile("tmp"); |
171 | 166 | } |
172 | | - |
173 | | - // This simple test tickles a JVM C2 JIT crash on JDK's less than 21.0.1 |
174 | | - // Crashes only when run with HotSpot C2. |
175 | | - // Regardless of whether C2 is enabled or not, the test should never fail. |
176 | | - public void testCrash() throws IOException { |
177 | | - assumeTrue( |
178 | | - "Requires HotSpot C2 compiler (won't work on client VM).", |
179 | | - Constants.IS_HOTSPOT_VM && !Constants.IS_CLIENT_VM); |
180 | | - int itrs = atLeast(100); |
181 | | - for (int i = 0; i < itrs; i++) { |
182 | | - try (Directory dir = newDirectory(); |
183 | | - IndexWriter iw = new IndexWriter(dir, newIndexWriterConfig(null))) { |
184 | | - for (int d = 0; d < 20_000; d++) { |
185 | | - iw.addDocument( |
186 | | - List.of(new IntPoint("foo", 0), new SortedNumericDocValuesField("bar", 0))); |
187 | | - } |
188 | | - } |
189 | | - } |
190 | | - } |
191 | 167 | } |
0 commit comments