2020-09-02 04:07:20 +00:00
|
|
|
.class public final Ll0/a/c0;
|
|
|
|
.super Ll0/a/o0;
|
2020-07-20 19:00:44 +00:00
|
|
|
.source "DefaultExecutor.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Ljava/lang/Runnable;
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static volatile _thread:Ljava/lang/Thread;
|
|
|
|
|
|
|
|
.field public static volatile debugStatus:I
|
|
|
|
|
|
|
|
.field public static final i:J
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
.field public static final j:Ll0/a/c0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-07-20 19:00:44 +00:00
|
|
|
.method public static constructor <clinit>()V
|
|
|
|
.locals 4
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
new-instance v0, Ll0/a/c0;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
invoke-direct {v0}, Ll0/a/c0;-><init>()V
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sput-object v0, Ll0/a/c0;->j:Ll0/a/c0;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
invoke-virtual {v0, v1}, Ll0/a/n0;->z(Z)V
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
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 v1
|
|
|
|
: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 v1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
const-string v2, "try {\n java.l\u2026AULT_KEEP_ALIVE\n }"
|
|
|
|
|
2020-09-08 08:16:32 +00:00
|
|
|
invoke-static {v1, v2}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, 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
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sput-wide v0, Ll0/a/c0;->i:J
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 0
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
invoke-direct {p0}, Ll0/a/o0;-><init>()V
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2020-07-23 01:06:17 +00:00
|
|
|
.method public D()Ljava/lang/Thread;
|
2020-07-20 19:00:44 +00:00
|
|
|
.locals 2
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v0, Ll0/a/c0;->_thread:Ljava/lang/Thread;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_0
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v0, Ll0/a/c0;->_thread:Ljava/lang/Thread;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
new-instance v0, Ljava/lang/Thread;
|
|
|
|
|
|
|
|
const-string v1, "kotlinx.coroutines.DefaultExecutor"
|
|
|
|
|
|
|
|
invoke-direct {v0, p0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;Ljava/lang/String;)V
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sput-object v0, Ll0/a/c0;->_thread:Ljava/lang/Thread;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
.method public final declared-synchronized N()V
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 1
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_0
|
2020-09-02 04:07:20 +00:00
|
|
|
invoke-virtual {p0}, Ll0/a/c0;->O()Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
move-result v0
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
if-nez v0, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
monitor-exit p0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
2020-07-20 19:00:44 +00:00
|
|
|
const/4 v0, 0x3
|
|
|
|
|
|
|
|
:try_start_1
|
2020-09-02 04:07:20 +00:00
|
|
|
sput v0, Ll0/a/c0;->debugStatus:I
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
iput-object v0, p0, Ll0/a/o0;->_queue:Ljava/lang/Object;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
iput-object v0, p0, Ll0/a/o0;->_delayed:Ljava/lang/Object;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, 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
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw v0
|
2020-07-20 19:00:44 +00:00
|
|
|
.end method
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
.method public final O()Z
|
2020-07-20 19:00:44 +00:00
|
|
|
.locals 2
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget v0, Ll0/a/c0;->debugStatus:I
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
goto :goto_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_1
|
2020-07-20 19:00:44 +00:00
|
|
|
:goto_0
|
|
|
|
const/4 v0, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
:goto_1
|
|
|
|
return v0
|
|
|
|
.end method
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
.method public run()V
|
|
|
|
.locals 12
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v0, Ll0/a/n1;->b:Ll0/a/n1;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v0, Ll0/a/n1;->a:Ljava/lang/ThreadLocal;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p0}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
monitor-enter p0
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
|
|
|
|
:try_start_1
|
2020-09-02 04:07:20 +00:00
|
|
|
invoke-virtual {p0}, Ll0/a/c0;->O()Z
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:try_start_2
|
|
|
|
monitor-exit p0
|
|
|
|
:try_end_2
|
|
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
:try_start_3
|
2020-09-02 04:07:20 +00:00
|
|
|
sput v1, Ll0/a/c0;->debugStatus:I
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
:try_end_3
|
|
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
|
|
|
|
:try_start_4
|
|
|
|
monitor-exit p0
|
|
|
|
:try_end_4
|
|
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sput-object v0, Ll0/a/c0;->_thread:Ljava/lang/Thread;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
invoke-virtual {p0}, Ll0/a/c0;->N()V
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
invoke-virtual {p0}, Ll0/a/o0;->K()Z
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
invoke-virtual {p0}, Ll0/a/c0;->D()Ljava/lang/Thread;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const-wide v1, 0x7fffffffffffffffL
|
|
|
|
|
|
|
|
move-wide v3, v1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
:goto_1
|
|
|
|
:try_start_5
|
|
|
|
invoke-static {}, Ljava/lang/Thread;->interrupted()Z
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
invoke-virtual {p0}, Ll0/a/o0;->L()J
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
move-result-wide v5
|
|
|
|
|
|
|
|
const-wide/16 v7, 0x0
|
|
|
|
|
|
|
|
cmp-long v9, v5, v1
|
|
|
|
|
|
|
|
if-nez v9, :cond_8
|
|
|
|
|
|
|
|
cmp-long v9, v3, v1
|
|
|
|
|
|
|
|
if-nez v9, :cond_7
|
|
|
|
|
|
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
|
|
|
|
move-result-wide v10
|
|
|
|
|
|
|
|
if-nez v9, :cond_4
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-wide v3, Ll0/a/c0;->i:J
|
2020-07-20 19:00:44 +00:00
|
|
|
:try_end_5
|
|
|
|
.catchall {:try_start_5 .. :try_end_5} :catchall_1
|
|
|
|
|
|
|
|
add-long/2addr v3, v10
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
sub-long v9, v3, v10
|
|
|
|
|
|
|
|
cmp-long v11, v9, v7
|
|
|
|
|
|
|
|
if-gtz v11, :cond_6
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sput-object v0, Ll0/a/c0;->_thread:Ljava/lang/Thread;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
invoke-virtual {p0}, Ll0/a/c0;->N()V
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
invoke-virtual {p0}, Ll0/a/o0;->K()Z
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_5
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
invoke-virtual {p0}, Ll0/a/c0;->D()Ljava/lang/Thread;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
:cond_5
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
:try_start_6
|
2020-09-08 08:16:32 +00:00
|
|
|
invoke-static {v5, v6, v9, v10}, Lk0/q/f;->coerceAtMost(JJ)J
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
move-result-wide v5
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_7
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-wide v9, Ll0/a/c0;->i:J
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-09-08 08:16:32 +00:00
|
|
|
invoke-static {v5, v6, v9, v10}, Lk0/q/f;->coerceAtMost(JJ)J
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
move-result-wide v5
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
:goto_2
|
|
|
|
cmp-long v9, v5, v7
|
|
|
|
|
|
|
|
if-lez v9, :cond_3
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
invoke-virtual {p0}, Ll0/a/c0;->O()Z
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
move-result v7
|
|
|
|
:try_end_6
|
|
|
|
.catchall {:try_start_6 .. :try_end_6} :catchall_1
|
|
|
|
|
|
|
|
if-eqz v7, :cond_a
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sput-object v0, Ll0/a/c0;->_thread:Ljava/lang/Thread;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
invoke-virtual {p0}, Ll0/a/c0;->N()V
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
invoke-virtual {p0}, Ll0/a/o0;->K()Z
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_9
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
invoke-virtual {p0}, Ll0/a/c0;->D()Ljava/lang/Thread;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
:cond_9
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
:try_start_7
|
|
|
|
invoke-static {p0, v5, v6}, Ljava/util/concurrent/locks/LockSupport;->parkNanos(Ljava/lang/Object;J)V
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v1
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
throw v1
|
|
|
|
:try_end_7
|
|
|
|
.catchall {:try_start_7 .. :try_end_7} :catchall_1
|
|
|
|
|
|
|
|
:catchall_1
|
|
|
|
move-exception v1
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sput-object v0, Ll0/a/c0;->_thread:Ljava/lang/Thread;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
invoke-virtual {p0}, Ll0/a/c0;->N()V
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
invoke-virtual {p0}, Ll0/a/o0;->K()Z
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_b
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
invoke-virtual {p0}, Ll0/a/c0;->D()Ljava/lang/Thread;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
|
|
|
:cond_b
|
|
|
|
throw v1
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|