2020-09-22 07:09:10 +00:00
|
|
|
.class public final Ld0/a/m;
|
|
|
|
.super Ld0/a/p0;
|
2020-07-20 19:00:44 +00:00
|
|
|
.source "CommonPool.kt"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
# static fields
|
|
|
|
.field public static final d:I
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
.field public static final e:Ld0/a/m;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
.field public static volatile pool:Ljava/util/concurrent/Executor;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-07-20 19:00:44 +00:00
|
|
|
.method public static constructor <clinit>()V
|
|
|
|
.locals 4
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
new-instance v0, Ld0/a/m;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-direct {v0}, Ld0/a/m;-><init>()V
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
sput-object v0, Ld0/a/m;->e:Ld0/a/m;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
const-string v0, "kotlinx.coroutines.default.parallelism"
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {v0}, Lc0/t/j;->toIntOrNull(Ljava/lang/String;)Ljava/lang/Integer;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
if-lt v2, v3, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string v1, "Expected positive number in kotlinx.coroutines.default.parallelism, but has "
|
|
|
|
|
2020-09-23 03:12:49 +00:00
|
|
|
invoke-static {v1, v0}, Lf/e/c/a/a;->q(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
new-instance v1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 v0, -0x1
|
|
|
|
|
|
|
|
:goto_1
|
2020-09-22 07:09:10 +00:00
|
|
|
sput v0, Ld0/a/m;->d:I
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 0
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-direct {p0}, Ld0/a/p0;-><init>()V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2020-07-20 19:00:44 +00:00
|
|
|
.method public close()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v1, "Close cannot be invoked on CommonPool"
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public dispatch(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Runnable;)V
|
2020-09-16 23:45:23 +00:00
|
|
|
.locals 0
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
:try_start_0
|
2020-09-22 07:09:10 +00:00
|
|
|
sget-object p1, Ld0/a/m;->pool:Ljava/util/concurrent/Executor;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
goto :goto_1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
:cond_0
|
2020-07-23 01:06:17 +00:00
|
|
|
monitor-enter p0
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/util/concurrent/RejectedExecutionException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
:try_start_1
|
2020-09-22 07:09:10 +00:00
|
|
|
sget-object p1, Ld0/a/m;->pool:Ljava/util/concurrent/Executor;
|
2020-07-23 01:06:17 +00:00
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-virtual {p0}, Ld0/a/m;->v()Ljava/util/concurrent/ExecutorService;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
sput-object p1, Ld0/a/m;->pool:Ljava/util/concurrent/Executor;
|
2020-07-23 01:06:17 +00:00
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
:goto_0
|
2020-07-23 01:06:17 +00:00
|
|
|
:try_start_2
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
:goto_1
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-interface {p1, p2}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
:try_end_2
|
|
|
|
.catch Ljava/util/concurrent/RejectedExecutionException; {:try_start_2 .. :try_end_2} :catch_0
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
:catch_0
|
2020-09-22 07:09:10 +00:00
|
|
|
sget-object p1, Ld0/a/z;->j:Ld0/a/z;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-virtual {p1, p2}, Ld0/a/l0;->E(Ljava/lang/Runnable;)V
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:goto_2
|
2020-07-20 19:00:44 +00:00
|
|
|
return-void
|
2020-07-08 16:44:49 +00:00
|
|
|
.end method
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
.method public final t()Ljava/util/concurrent/ExecutorService;
|
2020-07-20 19:00:44 +00:00
|
|
|
.locals 3
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicInteger;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>()V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-virtual {p0}, Ld0/a/m;->x()I
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
move-result v1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
new-instance v2, Ld0/a/m$a;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-direct {v2, v0}, Ld0/a/m$a;-><init>(Ljava/util/concurrent/atomic/AtomicInteger;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-static {v1, v2}, Ljava/util/concurrent/Executors;->newFixedThreadPool(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
move-result-object v0
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
|
|
.locals 1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "CommonPool"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
.method public final v()Ljava/util/concurrent/ExecutorService;
|
2020-07-20 19:00:44 +00:00
|
|
|
.locals 7
|
|
|
|
|
|
|
|
invoke-static {}, Ljava/lang/System;->getSecurityManager()Ljava/lang/SecurityManager;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-virtual {p0}, Ld0/a/m;->t()Ljava/util/concurrent/ExecutorService;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
const-string v1, "java.util.concurrent.ForkJoinPool"
|
|
|
|
|
|
|
|
invoke-static {v1}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-object v1, v0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v1, :cond_a
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
sget v2, Ld0/a/m;->d:I
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
if-gez v2, :cond_7
|
|
|
|
|
|
|
|
:try_start_1
|
|
|
|
const-string v2, "commonPool"
|
|
|
|
|
|
|
|
new-array v5, v4, [Ljava/lang/Class;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2, v5}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
new-array v5, v4, [Ljava/lang/Object;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-virtual {v2, v0, v5}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
move-result-object v2
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
move-object v2, v0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
instance-of v5, v2, Ljava/util/concurrent/ExecutorService;
|
|
|
|
|
|
|
|
if-nez v5, :cond_2
|
|
|
|
|
|
|
|
move-object v2, v0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
check-cast v2, Ljava/util/concurrent/ExecutorService;
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:catchall_1
|
|
|
|
move-object v2, v0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
if-eqz v2, :cond_7
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
sget-object v5, Ld0/a/m;->e:Ld0/a/m;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
if-eqz v5, :cond_6
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
sget-object v5, Ld0/a/n;->d:Ld0/a/n;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
invoke-interface {v2, v5}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
|
|
|
|
|
|
|
|
:try_start_2
|
|
|
|
const-string v5, "getPoolSize"
|
|
|
|
|
|
|
|
new-array v6, v4, [Ljava/lang/Class;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v5, v6}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
new-array v6, v4, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-virtual {v5, v2, v6}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
instance-of v6, v5, Ljava/lang/Integer;
|
|
|
|
|
|
|
|
if-nez v6, :cond_3
|
|
|
|
|
|
|
|
move-object v5, v0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
check-cast v5, Ljava/lang/Integer;
|
|
|
|
:try_end_2
|
|
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_2
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:catchall_2
|
|
|
|
move-object v5, v0
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
if-eqz v5, :cond_4
|
|
|
|
|
|
|
|
invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
if-lt v5, v3, :cond_4
|
|
|
|
|
|
|
|
const/4 v5, 0x1
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
if-eqz v5, :cond_5
|
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
move-object v2, v0
|
|
|
|
|
|
|
|
:goto_5
|
|
|
|
if-eqz v2, :cond_7
|
|
|
|
|
|
|
|
return-object v2
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
:try_start_3
|
|
|
|
new-array v2, v3, [Ljava/lang/Class;
|
|
|
|
|
|
|
|
sget-object v5, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
|
|
|
|
|
|
|
|
aput-object v5, v2, v4
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/Class;->getConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
new-array v2, v3, [Ljava/lang/Object;
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
sget-object v3, Ld0/a/m;->e:Ld0/a/m;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-virtual {v3}, Ld0/a/m;->x()I
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
instance-of v2, v1, Ljava/util/concurrent/ExecutorService;
|
|
|
|
|
|
|
|
if-nez v2, :cond_8
|
|
|
|
|
|
|
|
move-object v1, v0
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
check-cast v1, Ljava/util/concurrent/ExecutorService;
|
|
|
|
:try_end_3
|
|
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_3
|
|
|
|
|
|
|
|
move-object v0, v1
|
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
|
|
|
:catchall_3
|
|
|
|
nop
|
|
|
|
|
|
|
|
:goto_6
|
|
|
|
if-eqz v0, :cond_9
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_9
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-virtual {p0}, Ld0/a/m;->t()Ljava/util/concurrent/ExecutorService;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
:cond_a
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-virtual {p0}, Ld0/a/m;->t()Ljava/util/concurrent/ExecutorService;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
.method public final x()I
|
2020-07-20 19:00:44 +00:00
|
|
|
.locals 3
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
sget v0, Ld0/a/m;->d:I
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Number;->intValue()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
if-lez v1, :cond_0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Runtime;->availableProcessors()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
sub-int/2addr v0, v2
|
|
|
|
|
|
|
|
if-ge v0, v2, :cond_3
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
move v2, v0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
move v0, v2
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
return v0
|
2020-07-08 16:44:49 +00:00
|
|
|
.end method
|