< prev index next >
test/testlibrary/ctw/src/sun/hotspot/tools/ctw/CompileTheWorld.java
Print this page
rev 13327 : 8184738: CTW fails with assert(!method->method_holder()->is_not_initialized()) failed: method holder must be initialized
Reviewed-by: duke
*** 27,36 ****
--- 27,37 ----
import java.io.*;
import java.nio.file.Files;
import java.nio.file.Paths;
+ import java.util.Arrays;
import java.util.List;
import java.util.concurrent.*;
public class CompileTheWorld {
// in case when a static constructor changes System::out and System::err
*** 71,86 ****
// compact1, compact2 support
}
ExecutorService executor = createExecutor();
long start = System.currentTimeMillis();
try {
! String path;
! for (int i = 0, n = paths.length; i < n
! && !PathHandler.isFinished(); ++i) {
! path = paths[i];
! PathHandler.create(path, executor).process();
}
} finally {
await(executor);
}
CompileTheWorld.OUT.printf("Done (%d classes, %d methods, %d ms)%n",
PathHandler.getProcessedClassCount(),
--- 72,91 ----
// compact1, compact2 support
}
ExecutorService executor = createExecutor();
long start = System.currentTimeMillis();
try {
! Arrays.stream(paths)
! .map(PathHandler::create)
! .flatMap(List::stream)
! .forEach(p -> {
! try {
! p.process(executor);
! } finally {
! p.close();
}
+ });
} finally {
await(executor);
}
CompileTheWorld.OUT.printf("Done (%d classes, %d methods, %d ms)%n",
PathHandler.getProcessedClassCount(),
< prev index next >