8186694: JShell: speed-up compilation by reusing compiler instances

Generalizing ReusableContext and using it in JShell to speed up processing.

Reviewed-by: mcimadamore, rfield
This commit is contained in:
Jan Lahoda 2017-09-01 14:04:20 +02:00
parent fcf9b5115d
commit f66b1c7a8b
34 changed files with 1313 additions and 882 deletions

View file

@ -203,9 +203,9 @@ public class MethodReferenceParserTest extends ComboInstance<MethodReferencePars
@Override
public void doWork() throws IOException {
check(newCompilationTask()
newCompilationTask()
.withSourceFromTemplate(template)
.parse());
.parse(this::check);
}
void check(Result<?> res) {