2019-02-04 20:29:01 +00:00
|
|
|
.class public final Lkotlinx/coroutines/l;
|
2019-02-04 20:32:01 +00:00
|
|
|
.super Lkotlinx/coroutines/an;
|
|
|
|
.source "CommonPool.kt"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
2019-02-27 00:16:35 +00:00
|
|
|
.field private static final bfu:I
|
2019-02-04 20:32:01 +00:00
|
|
|
|
2019-02-27 00:16:35 +00:00
|
|
|
.field private static bfv:Z
|
2019-02-04 20:32:01 +00:00
|
|
|
|
2019-02-27 00:16:35 +00:00
|
|
|
.field public static final bfw:Lkotlinx/coroutines/l;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
.field private static volatile pool:Ljava/util/concurrent/Executor;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method static constructor <clinit>()V
|
2019-02-04 20:32:01 +00:00
|
|
|
.locals 3
|
|
|
|
|
|
|
|
new-instance v0, Lkotlinx/coroutines/l;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Lkotlinx/coroutines/l;-><init>()V
|
|
|
|
|
2019-02-27 00:16:35 +00:00
|
|
|
sput-object v0, Lkotlinx/coroutines/l;->bfw:Lkotlinx/coroutines/l;
|
2019-02-04 20:32:01 +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
|
|
|
|
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-nez v0, :cond_0
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const/4 v0, -0x1
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_0
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-static {v0}, Lkotlin/text/l;->dr(Ljava/lang/String;)Ljava/lang/Integer;
|
2019-02-04 20:29:01 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-lez v2, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
:goto_1
|
2019-02-27 00:16:35 +00:00
|
|
|
sput v0, Lkotlinx/coroutines/l;->bfu:I
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
2019-02-04 20:29:01 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v1, "Expected positive number in kotlinx.coroutines.default.parallelism, but has "
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-instance v1, Ljava/lang/IllegalStateException;
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast v1, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw v1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private constructor <init>()V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lkotlinx/coroutines/an;-><init>()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.method private static a(Ljava/lang/Class;Ljava/util/concurrent/ExecutorService;)Z
|
2019-02-04 20:29:01 +00:00
|
|
|
.locals 4
|
2019-02-04 20:32:01 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/lang/Class<",
|
|
|
|
"*>;",
|
|
|
|
"Ljava/util/concurrent/ExecutorService;",
|
|
|
|
")Z"
|
|
|
|
}
|
|
|
|
.end annotation
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v0, "fjpClass"
|
2019-02-04 20:29:01 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v0, "executor"
|
2019-02-04 20:29:01 +00:00
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-02-27 00:16:35 +00:00
|
|
|
sget-object v0, Lkotlinx/coroutines/l$b;->bfy:Lkotlinx/coroutines/l$b;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
check-cast v0, Ljava/lang/Runnable;
|
|
|
|
|
|
|
|
invoke-interface {p1, v0}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
const-string v2, "getPoolSize"
|
|
|
|
|
|
|
|
new-array v3, v1, [Ljava/lang/Class;
|
|
|
|
|
|
|
|
invoke-virtual {p0, v2, v3}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
new-array v2, v1, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
instance-of p1, p0, Ljava/lang/Integer;
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-nez p1, :cond_0
|
|
|
|
|
|
|
|
move-object p0, v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
check-cast p0, Ljava/lang/Integer;
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-object p0, v0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
if-lez p0, :cond_1
|
|
|
|
|
|
|
|
const/4 p0, 0x1
|
|
|
|
|
|
|
|
return p0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return v1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private static getParallelism()I
|
|
|
|
.locals 3
|
|
|
|
|
2019-02-27 00:16:35 +00:00
|
|
|
sget v0, Lkotlinx/coroutines/l;->bfu:I
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
2019-02-04 20:29:01 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-object v1, v0
|
|
|
|
|
|
|
|
check-cast v1, Ljava/lang/Number;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, 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
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
:goto_0
|
2019-02-04 20:32:01 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
: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
|
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
invoke-static {v0, v2}, Lkotlin/ranges/b;->Z(II)I
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
.method private final yC()Ljava/util/concurrent/ExecutorService;
|
2019-02-04 20:32:01 +00:00
|
|
|
.locals 6
|
|
|
|
|
|
|
|
invoke-static {}, Ljava/lang/System;->getSecurityManager()Ljava/lang/SecurityManager;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/l;->yD()Ljava/util/concurrent/ExecutorService;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
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
|
2019-02-04 20:29:01 +00:00
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catch_0
|
2019-02-04 20:32:01 +00:00
|
|
|
move-object v1, v0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/l;->yD()Ljava/util/concurrent/ExecutorService;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_1
|
2019-02-27 00:16:35 +00:00
|
|
|
sget-boolean v2, Lkotlinx/coroutines/l;->bfv:Z
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
if-nez v2, :cond_5
|
|
|
|
|
2019-02-27 00:16:35 +00:00
|
|
|
sget v2, Lkotlinx/coroutines/l;->bfu:I
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
if-gez v2, :cond_5
|
|
|
|
|
|
|
|
:try_start_1
|
|
|
|
const-string v2, "commonPool"
|
|
|
|
|
|
|
|
new-array v4, v3, [Ljava/lang/Class;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2, v4}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
2019-02-04 20:29:01 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-eqz v2, :cond_2
|
|
|
|
|
|
|
|
new-array v4, v3, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-virtual {v2, v0, v4}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
move-object v2, v0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
instance-of v4, v2, Ljava/util/concurrent/ExecutorService;
|
|
|
|
|
|
|
|
if-nez v4, :cond_3
|
|
|
|
|
|
|
|
move-object v2, v0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
check-cast v2, Ljava/util/concurrent/ExecutorService;
|
|
|
|
:try_end_1
|
|
|
|
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:catch_1
|
|
|
|
move-object v2, v0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
|
|
|
|
invoke-static {v1, v2}, Lkotlinx/coroutines/l;->a(Ljava/lang/Class;Ljava/util/concurrent/ExecutorService;)Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-eqz v4, :cond_4
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
goto :goto_3
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_4
|
|
|
|
move-object v2, v0
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:goto_3
|
|
|
|
if-eqz v2, :cond_5
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
return-object v2
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
:try_start_2
|
|
|
|
new-array v4, v2, [Ljava/lang/Class;
|
|
|
|
|
|
|
|
sget-object v5, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
|
|
|
|
|
|
|
|
aput-object v5, v4, v3
|
|
|
|
|
|
|
|
invoke-virtual {v1, v4}, Ljava/lang/Class;->getConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
|
2019-02-04 20:29:01 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/l;->getParallelism()I
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result v4
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
aput-object v4, v2, v3
|
|
|
|
|
|
|
|
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_6
|
|
|
|
|
|
|
|
move-object v1, v0
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
check-cast v1, Ljava/util/concurrent/ExecutorService;
|
|
|
|
:try_end_2
|
|
|
|
.catch Ljava/lang/Throwable; {:try_start_2 .. :try_end_2} :catch_2
|
|
|
|
|
|
|
|
move-object v0, v1
|
|
|
|
|
|
|
|
:catch_2
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_7
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/l;->yD()Ljava/util/concurrent/ExecutorService;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
.method private static yD()Ljava/util/concurrent/ExecutorService;
|
2019-02-21 02:16:48 +00:00
|
|
|
.locals 3
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>()V
|
|
|
|
|
|
|
|
invoke-static {}, Lkotlinx/coroutines/l;->getParallelism()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
new-instance v2, Lkotlinx/coroutines/l$a;
|
|
|
|
|
|
|
|
invoke-direct {v2, v0}, Lkotlinx/coroutines/l$a;-><init>(Ljava/util/concurrent/atomic/AtomicInteger;)V
|
|
|
|
|
|
|
|
check-cast v2, Ljava/util/concurrent/ThreadFactory;
|
|
|
|
|
|
|
|
invoke-static {v1, v2}, Ljava/util/concurrent/Executors;->newFixedThreadPool(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "Executors.newFixedThread\u2026Daemon = true }\n }"
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
.method private final declared-synchronized yE()Ljava/util/concurrent/Executor;
|
2019-02-21 02:16:48 +00:00
|
|
|
.locals 2
|
|
|
|
|
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
sget-object v0, Lkotlinx/coroutines/l;->pool:Ljava/util/concurrent/Executor;
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-direct {p0}, Lkotlinx/coroutines/l;->yC()Ljava/util/concurrent/ExecutorService;
|
2019-02-21 02:16:48 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
move-object v1, v0
|
|
|
|
|
|
|
|
check-cast v1, Ljava/util/concurrent/Executor;
|
|
|
|
|
|
|
|
sput-object v1, Lkotlinx/coroutines/l;->pool:Ljava/util/concurrent/Executor;
|
|
|
|
|
|
|
|
check-cast v0, Ljava/util/concurrent/Executor;
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final a(Lkotlin/c/e;Ljava/lang/Runnable;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const-string v0, "context"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string p1, "block"
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p2, p1}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_0
|
|
|
|
sget-object p1, Lkotlinx/coroutines/l;->pool:Ljava/util/concurrent/Executor;
|
|
|
|
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-direct {p0}, Lkotlinx/coroutines/l;->yE()Ljava/util/concurrent/Executor;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
:cond_0
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/bk;->zf()Lkotlinx/coroutines/bj;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-interface {v0, p2}, Lkotlinx/coroutines/bj;->m(Ljava/lang/Runnable;)Ljava/lang/Runnable;
|
2019-02-04 20:29:01 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-interface {p1, v0}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/util/concurrent/RejectedExecutionException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:catch_0
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/bk;->zf()Lkotlinx/coroutines/bj;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
2019-02-27 00:16:35 +00:00
|
|
|
sget-object p1, Lkotlinx/coroutines/ab;->bfM:Lkotlinx/coroutines/ab;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Lkotlinx/coroutines/ab;->n(Ljava/lang/Runnable;)V
|
2019-02-04 20:29:01 +00:00
|
|
|
|
|
|
|
return-void
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
.method public final 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
|
|
|
|
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final toString()Ljava/lang/String;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const-string v0, "CommonPool"
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|