2019-02-04 20:08:30 +00:00
|
|
|
.class public final Lkotlinx/coroutines/u;
|
|
|
|
.super Lkotlinx/coroutines/ae;
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Ljava/lang/Runnable;
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field private static final bRT:J
|
|
|
|
|
|
|
|
.field private static volatile bRU:Ljava/lang/Thread;
|
|
|
|
|
|
|
|
.field private static volatile bRV:I
|
|
|
|
|
|
|
|
.field public static final bRW:Lkotlinx/coroutines/u;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method static constructor <clinit>()V
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
new-instance v0, Lkotlinx/coroutines/u;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Lkotlinx/coroutines/u;-><init>()V
|
|
|
|
|
|
|
|
sput-object v0, Lkotlinx/coroutines/u;->bRW:Lkotlinx/coroutines/u;
|
|
|
|
|
|
|
|
sget-object v0, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
|
|
|
|
const-wide/16 v1, 0x3e8
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
const-string v3, "kotlinx.coroutines.DefaultExecutor.keepAlive"
|
|
|
|
|
|
|
|
invoke-static {v3, v1, v2}, Ljava/lang/Long;->getLong(Ljava/lang/String;J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
const-string v1, "try {\n java.l\u2026AULT_KEEP_ALIVE\n }"
|
|
|
|
|
|
|
|
invoke-static {v3, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Ljava/lang/Long;->longValue()J
|
|
|
|
|
|
|
|
move-result-wide v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
sput-wide v0, Lkotlinx/coroutines/u;->bRT:J
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private constructor <init>()V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lkotlinx/coroutines/ae;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:17:36 +00:00
|
|
|
.method private static FG()Z
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 2
|
|
|
|
|
|
|
|
sget v0, Lkotlinx/coroutines/u;->bRV:I
|
|
|
|
|
|
|
|
const/4 v1, 0x2
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
|
|
|
|
const/4 v1, 0x3
|
|
|
|
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:17:36 +00:00
|
|
|
.method private final FH()Ljava/lang/Thread;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
sget-object v0, Lkotlinx/coroutines/u;->bRU:Ljava/lang/Thread;
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-02-04 20:17:36 +00:00
|
|
|
invoke-direct {p0}, Lkotlinx/coroutines/u;->FI()Ljava/lang/Thread;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:17:36 +00:00
|
|
|
.method private final declared-synchronized FI()Ljava/lang/Thread;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 3
|
|
|
|
|
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
sget-object v0, Lkotlinx/coroutines/u;->bRU:Ljava/lang/Thread;
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/Thread;
|
|
|
|
|
|
|
|
move-object v1, p0
|
|
|
|
|
|
|
|
check-cast v1, Ljava/lang/Runnable;
|
|
|
|
|
|
|
|
const-string v2, "kotlinx.coroutines.DefaultExecutor"
|
|
|
|
|
|
|
|
invoke-direct {v0, v1, v2}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
sput-object v0, Lkotlinx/coroutines/u;->bRU:Ljava/lang/Thread;
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/Thread;->setDaemon(Z)V
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Thread;->start()V
|
|
|
|
: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:17:36 +00:00
|
|
|
.method private final declared-synchronized FJ()Z
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 2
|
|
|
|
|
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_0
|
2019-02-04 20:17:36 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/u;->FG()Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
:try_start_1
|
|
|
|
sput v0, Lkotlinx/coroutines/u;->bRV:I
|
|
|
|
|
|
|
|
move-object v1, p0
|
|
|
|
|
|
|
|
check-cast v1, Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:17:36 +00:00
|
|
|
.method private final declared-synchronized FK()V
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_0
|
2019-02-04 20:17:36 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/u;->FG()Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x3
|
|
|
|
|
|
|
|
:try_start_1
|
|
|
|
sput v0, Lkotlinx/coroutines/u;->bRV:I
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lkotlinx/coroutines/ae;->bSj:Ljava/lang/Object;
|
|
|
|
|
|
|
|
iput-object v0, p0, Lkotlinx/coroutines/ae;->bSl:Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
check-cast v0, Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final run()V
|
|
|
|
.locals 12
|
|
|
|
|
2019-02-04 20:17:36 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/bb;->Gh()Lkotlinx/coroutines/ba;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:try_start_0
|
2019-02-04 20:17:36 +00:00
|
|
|
invoke-direct {p0}, Lkotlinx/coroutines/u;->FJ()Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
|
|
|
|
sput-object v0, Lkotlinx/coroutines/u;->bRU:Ljava/lang/Thread;
|
|
|
|
|
2019-02-04 20:17:36 +00:00
|
|
|
invoke-direct {p0}, Lkotlinx/coroutines/u;->FK()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:17:36 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/bb;->Gh()Lkotlinx/coroutines/ba;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/u;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-02-04 20:17:36 +00:00
|
|
|
invoke-direct {p0}, Lkotlinx/coroutines/u;->FH()Ljava/lang/Thread;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-wide v1, 0x7fffffffffffffffL
|
|
|
|
|
|
|
|
move-wide v3, v1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:goto_0
|
|
|
|
:try_start_1
|
|
|
|
invoke-static {}, Ljava/lang/Thread;->interrupted()Z
|
|
|
|
|
2019-02-04 20:17:36 +00:00
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/u;->FT()J
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-wide v5
|
|
|
|
|
|
|
|
const-wide/16 v7, 0x0
|
|
|
|
|
|
|
|
cmp-long v9, v5, v1
|
|
|
|
|
|
|
|
if-nez v9, :cond_7
|
|
|
|
|
|
|
|
cmp-long v9, v3, v1
|
|
|
|
|
|
|
|
if-nez v9, :cond_6
|
|
|
|
|
2019-02-04 20:17:36 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/bb;->Gh()Lkotlinx/coroutines/ba;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v9
|
|
|
|
|
|
|
|
invoke-interface {v9}, Lkotlinx/coroutines/ba;->nanoTime()J
|
|
|
|
|
|
|
|
move-result-wide v9
|
|
|
|
|
|
|
|
cmp-long v11, v3, v1
|
|
|
|
|
|
|
|
if-nez v11, :cond_3
|
|
|
|
|
|
|
|
sget-wide v3, Lkotlinx/coroutines/u;->bRT:J
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
|
|
|
|
const/4 v11, 0x0
|
|
|
|
|
|
|
|
add-long/2addr v3, v9
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const/4 v11, 0x0
|
|
|
|
|
|
|
|
sub-long v9, v3, v9
|
|
|
|
|
|
|
|
cmp-long v11, v9, v7
|
|
|
|
|
|
|
|
if-gtz v11, :cond_5
|
|
|
|
|
|
|
|
sput-object v0, Lkotlinx/coroutines/u;->bRU:Ljava/lang/Thread;
|
|
|
|
|
2019-02-04 20:17:36 +00:00
|
|
|
invoke-direct {p0}, Lkotlinx/coroutines/u;->FK()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:17:36 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/bb;->Gh()Lkotlinx/coroutines/ba;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/u;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
|
2019-02-04 20:17:36 +00:00
|
|
|
invoke-direct {p0}, Lkotlinx/coroutines/u;->FH()Ljava/lang/Thread;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_4
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
:goto_1
|
|
|
|
:try_start_2
|
|
|
|
invoke-static {v5, v6, v9, v10}, Lkotlin/ranges/b;->g(JJ)J
|
|
|
|
|
|
|
|
move-result-wide v5
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
sget-wide v9, Lkotlinx/coroutines/u;->bRT:J
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
:goto_2
|
|
|
|
cmp-long v9, v5, v7
|
|
|
|
|
|
|
|
if-lez v9, :cond_2
|
|
|
|
|
2019-02-04 20:17:36 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/u;->FG()Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result v7
|
|
|
|
:try_end_2
|
|
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
|
|
|
|
if-eqz v7, :cond_9
|
|
|
|
|
|
|
|
sput-object v0, Lkotlinx/coroutines/u;->bRU:Ljava/lang/Thread;
|
|
|
|
|
2019-02-04 20:17:36 +00:00
|
|
|
invoke-direct {p0}, Lkotlinx/coroutines/u;->FK()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:17:36 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/bb;->Gh()Lkotlinx/coroutines/ba;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/u;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_8
|
|
|
|
|
2019-02-04 20:17:36 +00:00
|
|
|
invoke-direct {p0}, Lkotlinx/coroutines/u;->FH()Ljava/lang/Thread;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_8
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
:try_start_3
|
2019-02-04 20:17:36 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/bb;->Gh()Lkotlinx/coroutines/ba;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
invoke-interface {v7, p0, v5, v6}, Lkotlinx/coroutines/ba;->parkNanos(Ljava/lang/Object;J)V
|
|
|
|
:try_end_3
|
|
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v1
|
|
|
|
|
|
|
|
sput-object v0, Lkotlinx/coroutines/u;->bRU:Ljava/lang/Thread;
|
|
|
|
|
2019-02-04 20:17:36 +00:00
|
|
|
invoke-direct {p0}, Lkotlinx/coroutines/u;->FK()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:17:36 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/bb;->Gh()Lkotlinx/coroutines/ba;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/u;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_a
|
|
|
|
|
2019-02-04 20:17:36 +00:00
|
|
|
invoke-direct {p0}, Lkotlinx/coroutines/u;->FH()Ljava/lang/Thread;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_a
|
|
|
|
throw v1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method protected final unpark()V
|
|
|
|
.locals 2
|
|
|
|
|
2019-02-04 20:17:36 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/bb;->Gh()Lkotlinx/coroutines/ba;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-02-04 20:17:36 +00:00
|
|
|
invoke-direct {p0}, Lkotlinx/coroutines/u;->FH()Ljava/lang/Thread;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-interface {v0, v1}, Lkotlinx/coroutines/ba;->unpark(Ljava/lang/Thread;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|