mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
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:
parent
fcf9b5115d
commit
f66b1c7a8b
34 changed files with 1313 additions and 882 deletions
|
@ -246,9 +246,9 @@ public class LambdaParserTest extends ComboInstance<LambdaParserTest> {
|
|||
|
||||
@Override
|
||||
public void doWork() throws IOException {
|
||||
check(newCompilationTask()
|
||||
newCompilationTask()
|
||||
.withSourceFromTemplate(template)
|
||||
.parse());
|
||||
.parse(this::check);
|
||||
}
|
||||
|
||||
void check(Result<?> res) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue