Get rid of the default 6 thread maximum thing

This commit is contained in:
Ben Gruver 2016-02-28 11:08:12 -08:00
parent 616a0738dd
commit 11d179bfdb
3 changed files with 2 additions and 16 deletions

View File

@ -81,7 +81,7 @@ public class baksmaliOptions {
public InlineMethodResolver inlineResolver = null;
public int registerInfo = 0;
public ClassPath classPath = null;
public int jobs = -1;
public int jobs = Runtime.getRuntime().availableProcessors();
public SyntheticAccessorResolver syntheticAccessorResolver = null;

View File

@ -245,13 +245,6 @@ public class main {
return;
}
if (options.jobs <= 0) {
options.jobs = Runtime.getRuntime().availableProcessors();
if (options.jobs > 6) {
options.jobs = 6;
}
}
String inputDexFileName = remainingArgs[0];
File dexFileFile = new File(inputDexFileName);

View File

@ -109,7 +109,7 @@ public class main {
return;
}
int jobs = -1;
int jobs = Runtime.getRuntime().availableProcessors();
boolean allowOdex = false;
boolean verboseErrors = false;
boolean printTokens = false;
@ -209,13 +209,6 @@ public class main {
}
}
if (jobs <= 0) {
jobs = Runtime.getRuntime().availableProcessors();
if (jobs > 6) {
jobs = 6;
}
}
boolean errors = false;
final DexBuilder dexBuilder = DexBuilder.makeDexBuilder(Opcodes.forApi(apiLevel, experimental));