This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.sun.net.httpserver.HttpExchange; | |
import com.sun.net.httpserver.HttpHandler; | |
import com.sun.net.httpserver.HttpServer; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.net.InetSocketAddress; | |
import java.net.URI; | |
import java.net.http.HttpClient; | |
import java.net.http.HttpRequest; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Map; | |
import java.util.concurrent.Callable; | |
public class Oddball { | |
public static void main(String[] args) throws Exception { | |
Callable<Void> r = | |
() -> { | |
class Foo1 { | |
public Map<String, Integer> field; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Compile with javac -Xdoclint:all/protected ... | |
/** | |
* Lucene internals or asking for help on <a | |
* href="mailto:java-user@lucene.apache.org">java-user@lucene.apache.org</a> | |
*/ | |
public class Breaks {} | |
/** | |
* Lucene internals or asking for help on <a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
import java.util.concurrent.*; | |
import java.util.stream.*; | |
import java.util.concurrent.atomic.*; | |
public class Repro { | |
public static void main(String[] args) throws Exception { | |
ArrayBlockingQueue<Object> q = new ArrayBlockingQueue<>(1); | |
ForkJoinPool fj = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// demuxing multithreaded sysout calls? why not ;) | |
static class PerThreadOutputStream extends OutputStream { | |
ThreadLocal<ByteArrayOutputStream> baos = new ThreadLocal<ByteArrayOutputStream>(); | |
private PrintStream sink; | |
public PerThreadOutputStream(PrintStream sink) { | |
this.sink = sink; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get the code from my github fork: | |
git clone git@github.com:dweiss/lucene-solr.git --depth 1 -b junit4 | |
cd lucene-solr/lucene | |
# Get a baseline for core tests running on trunk/ant macros. | |
git checkout trunk | |
ant test-core -Dtestcase=compileonly | |
# This is a single run and it depends on the seed, but we'll consider | |
# it a baseline -> write down the execution time or remember it. | |
ant test-core -Dtests.seed=random |