mirror of
https://github.com/revanced/smali.git
synced 2025-05-17 06:27:07 +02:00
Get rid of the default 6 thread maximum thing
This commit is contained in:
parent
616a0738dd
commit
11d179bfdb
@ -81,7 +81,7 @@ public class baksmaliOptions {
|
|||||||
public InlineMethodResolver inlineResolver = null;
|
public InlineMethodResolver inlineResolver = null;
|
||||||
public int registerInfo = 0;
|
public int registerInfo = 0;
|
||||||
public ClassPath classPath = null;
|
public ClassPath classPath = null;
|
||||||
public int jobs = -1;
|
public int jobs = Runtime.getRuntime().availableProcessors();
|
||||||
|
|
||||||
public SyntheticAccessorResolver syntheticAccessorResolver = null;
|
public SyntheticAccessorResolver syntheticAccessorResolver = null;
|
||||||
|
|
||||||
|
@ -245,13 +245,6 @@ public class main {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options.jobs <= 0) {
|
|
||||||
options.jobs = Runtime.getRuntime().availableProcessors();
|
|
||||||
if (options.jobs > 6) {
|
|
||||||
options.jobs = 6;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
String inputDexFileName = remainingArgs[0];
|
String inputDexFileName = remainingArgs[0];
|
||||||
|
|
||||||
File dexFileFile = new File(inputDexFileName);
|
File dexFileFile = new File(inputDexFileName);
|
||||||
|
@ -109,7 +109,7 @@ public class main {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
int jobs = -1;
|
int jobs = Runtime.getRuntime().availableProcessors();
|
||||||
boolean allowOdex = false;
|
boolean allowOdex = false;
|
||||||
boolean verboseErrors = false;
|
boolean verboseErrors = false;
|
||||||
boolean printTokens = 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;
|
boolean errors = false;
|
||||||
|
|
||||||
final DexBuilder dexBuilder = DexBuilder.makeDexBuilder(Opcodes.forApi(apiLevel, experimental));
|
final DexBuilder dexBuilder = DexBuilder.makeDexBuilder(Opcodes.forApi(apiLevel, experimental));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user