mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
7021927: javac: regression in performance
Reviewed-by: jjg
This commit is contained in:
parent
f71b78ced3
commit
aa60df6782
10 changed files with 454 additions and 31 deletions
|
@ -178,12 +178,10 @@ public class T6838467 {
|
|||
return fm;
|
||||
}
|
||||
|
||||
JavacFileManager createFileManager(boolean useOptimedZipIndex) {
|
||||
JavacFileManager createFileManager(boolean useOptimizedZip) {
|
||||
Context ctx = new Context();
|
||||
if (useOptimedZipIndex) {
|
||||
Options options = Options.instance(ctx);
|
||||
options.put("useOptimizedZip", "true");
|
||||
}
|
||||
Options options = Options.instance(ctx);
|
||||
options.put("useOptimizedZip", Boolean.toString(useOptimizedZip));
|
||||
return new JavacFileManager(ctx, false, null);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue