2020-02-20 19:33:18 +00:00
|
|
|
.class public final Lx/a/b2/b$a;
|
2019-12-06 03:29:40 +00:00
|
|
|
.super Ljava/lang/Thread;
|
|
|
|
.source "CoroutineScheduler.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
2020-02-20 19:33:18 +00:00
|
|
|
value = Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x11
|
|
|
|
name = "a"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final k:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-02-20 19:33:18 +00:00
|
|
|
.field public final d:Lx/a/b2/o;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
.field public e:J
|
|
|
|
|
|
|
|
.field public f:J
|
|
|
|
|
|
|
|
.field public g:I
|
|
|
|
|
|
|
|
.field public h:I
|
|
|
|
|
|
|
|
.field public i:I
|
|
|
|
|
|
|
|
.field public volatile indexInArray:I
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
.field public final synthetic j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
.field public volatile nextParkedWorker:Ljava/lang/Object;
|
|
|
|
|
|
|
|
.field public volatile spins:I
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
.field public volatile state:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
.field public volatile terminationState:I
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public static constructor <clinit>()V
|
|
|
|
.locals 2
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const-class v0, Lx/a/b2/b$a;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const-string v1, "terminationState"
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->newUpdater(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sput-object v0, Lx/a/b2/b$a;->k:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
.method public constructor <init>(Lx/a/b2/b;I)V
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(I)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iput-object p1, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Thread;-><init>()V
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/Thread;->setDaemon(Z)V
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance v0, Lx/a/b2/o;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-direct {v0}, Lx/a/b2/o;-><init>()V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iput-object v0, p0, Lx/a/b2/b$a;->d:Lx/a/b2/o;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v0, Lx/a/b2/b$b;->g:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iput-object v0, p0, Lx/a/b2/b$a;->state:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iput v0, p0, Lx/a/b2/b$a;->terminationState:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v0, Lx/a/b2/b;->s:Lx/a/a2/v;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iput-object v0, p0, Lx/a/b2/b$a;->nextParkedWorker:Ljava/lang/Object;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget v0, Lx/a/b2/b;->r:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iput v0, p0, Lx/a/b2/b$a;->g:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object p1, p1, Lx/a/b2/b;->g:Ljava/util/Random;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/util/Random;->nextInt()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iput p1, p0, Lx/a/b2/b$a;->h:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {p0, p2}, Lx/a/b2/b$a;->b(I)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final a(I)I
|
|
|
|
.locals 2
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget v0, p0, Lx/a/b2/b$a;->h:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
shl-int/lit8 v1, v0, 0xd
|
|
|
|
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iput v0, p0, Lx/a/b2/b$a;->h:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget v0, p0, Lx/a/b2/b$a;->h:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
shr-int/lit8 v1, v0, 0x11
|
|
|
|
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iput v0, p0, Lx/a/b2/b$a;->h:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget v0, p0, Lx/a/b2/b$a;->h:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
shl-int/lit8 v1, v0, 0x5
|
|
|
|
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iput v0, p0, Lx/a/b2/b$a;->h:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
add-int/lit8 v0, p1, -0x1
|
|
|
|
|
|
|
|
and-int v1, v0, p1
|
|
|
|
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget p1, p0, Lx/a/b2/b$a;->h:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
and-int/2addr p1, v0
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_0
|
2020-02-20 19:33:18 +00:00
|
|
|
iget v0, p0, Lx/a/b2/b$a;->h:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const v1, 0x7fffffff
|
|
|
|
|
|
|
|
and-int/2addr v0, v1
|
|
|
|
|
|
|
|
rem-int/2addr v0, p1
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final a(Ljava/lang/Object;)V
|
|
|
|
.locals 0
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iput-object p1, p0, Lx/a/b2/b$a;->nextParkedWorker:Ljava/lang/Object;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final a()Z
|
|
|
|
.locals 3
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v0, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v0, v0, Lx/a/b2/b;->d:Lx/a/b2/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v1, Lx/a/b2/l;->e:Lx/a/b2/l;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v0, v1}, Lx/a/b2/e;->a(Lx/a/b2/l;)Lx/a/b2/i;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v1, p0, Lx/a/b2/b$a;->d:Lx/a/b2/o;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v2, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v2, v2, Lx/a/b2/b;->d:Lx/a/b2/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v1, v0, v2}, Lx/a/b2/o;->a(Lx/a/b2/i;Lx/a/b2/e;)Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final a(J)Z
|
|
|
|
.locals 1
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v0, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v0, p0}, Lx/a/b2/b;->a(Lx/a/b2/b;Lx/a/b2/b$a;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {p0}, Lx/a/b2/b$a;->a()Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-static {p1, p2}, Ljava/util/concurrent/locks/LockSupport;->parkNanos(J)V
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
.method public final a(Lx/a/b2/b$b;)Z
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 3
|
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v0, p0, Lx/a/b2/b$a;->state:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v1, Lx/a/b2/b$b;->d:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v2, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v2, v2, Lx/a/b2/b;->e:Ljava/util/concurrent/Semaphore;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2}, Ljava/util/concurrent/Semaphore;->release()V
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
if-eq v0, p1, :cond_2
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iput-object p1, p0, Lx/a/b2/b$a;->state:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const-string p1, "newState"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
.method public final b()Lx/a/b2/i;
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 5
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {p0}, Lx/a/b2/b$a;->c()Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_8
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v0, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v0}, Lx/a/b2/b;->a(Lx/a/b2/b;)I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x2
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x2
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {p0, v0}, Lx/a/b2/b$a;->a(I)I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v3, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v3, v3, Lx/a/b2/b;->d:Lx/a/b2/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v4, Lx/a/b2/l;->d:Lx/a/b2/l;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v3, v4}, Lx/a/b2/e;->a(Lx/a/b2/l;)Lx/a/b2/i;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v3, p0, Lx/a/b2/b$a;->d:Lx/a/b2/o;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v3}, Lx/a/b2/o;->b()Lx/a/b2/i;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v0, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v0, v0, Lx/a/b2/b;->d:Lx/a/b2/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v0}, Lx/a/a2/o;->a()Ljava/lang/Object;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
move-object v3, v0
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
check-cast v3, Lx/a/b2/i;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_3
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v0, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v0}, Lx/a/b2/b;->b(Lx/a/b2/b;)I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
if-ge v0, v1, :cond_4
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_4
|
2020-02-20 19:33:18 +00:00
|
|
|
iget v1, p0, Lx/a/b2/b$a;->i:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-nez v1, :cond_5
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {p0, v0}, Lx/a/b2/b$a;->a(I)I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
|
|
|
|
if-le v1, v0, :cond_6
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
:cond_6
|
2020-02-20 19:33:18 +00:00
|
|
|
iput v1, p0, Lx/a/b2/b$a;->i:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v0, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v2, v0, Lx/a/b2/b;->f:[Lx/a/b2/b$a;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
aget-object v1, v2, v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
|
|
|
|
if-eq v1, p0, :cond_7
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v2, p0, Lx/a/b2/b$a;->d:Lx/a/b2/o;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v1, v1, Lx/a/b2/b$a;->d:Lx/a/b2/o;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v0, v0, Lx/a/b2/b;->d:Lx/a/b2/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v2, v1, v0}, Lx/a/b2/o;->a(Lx/a/b2/o;Lx/a/b2/e;)Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v0, p0, Lx/a/b2/b$a;->d:Lx/a/b2/o;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v0}, Lx/a/b2/o;->b()Lx/a/b2/i;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
move-object v3, v0
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
:goto_1
|
|
|
|
return-object v3
|
|
|
|
|
|
|
|
:cond_8
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v0, p0, Lx/a/b2/b$a;->d:Lx/a/b2/o;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v0}, Lx/a/b2/o;->b()Lx/a/b2/i;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_9
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_9
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v0, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v0, v0, Lx/a/b2/b;->d:Lx/a/b2/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v1, Lx/a/b2/l;->e:Lx/a/b2/l;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v0, v1}, Lx/a/b2/e;->a(Lx/a/b2/l;)Lx/a/b2/i;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final b(I)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v1, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v1, v1, Lx/a/b2/b;->k:Ljava/lang/String;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, "-worker-"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
|
|
|
|
const-string v1, "TERMINATED"
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/Thread;->setName(Ljava/lang/String;)V
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iput p1, p0, Lx/a/b2/b$a;->indexInArray:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final c()Z
|
|
|
|
.locals 3
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v0, p0, Lx/a/b2/b$a;->state:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v1, Lx/a/b2/b$b;->d:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v0, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v0, v0, Lx/a/b2/b;->e:Ljava/util/concurrent/Semaphore;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/Semaphore;->tryAcquire()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v0, Lx/a/b2/b$b;->d:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iput-object v0, p0, Lx/a/b2/b$a;->state:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return v2
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final d()V
|
|
|
|
.locals 7
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v0, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v0, v0, Lx/a/b2/b;->f:[Lx/a/b2/b$a;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
monitor-enter v0
|
|
|
|
|
|
|
|
:try_start_0
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v1, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v1}, Lx/a/b2/b;->d(Lx/a/b2/b;)Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
monitor-exit v0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
:try_start_1
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v1, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-wide v1, v1, Lx/a/b2/b;->controlState:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const-wide/32 v3, 0x1fffff
|
|
|
|
|
|
|
|
and-long/2addr v1, v3
|
|
|
|
|
|
|
|
long-to-int v2, v1
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v1, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget v1, v1, Lx/a/b2/b;->h:I
|
2019-12-06 03:29:40 +00:00
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
|
|
|
|
if-gt v2, v1, :cond_1
|
|
|
|
|
|
|
|
monitor-exit v0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:try_start_2
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {p0}, Lx/a/b2/b$a;->a()Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
:try_end_2
|
|
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
|
|
|
|
monitor-exit v0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:try_start_3
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v1, Lx/a/b2/b$a;->k:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v1, p0, v5, v2}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->compareAndSet(Ljava/lang/Object;II)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
:try_end_3
|
|
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
|
|
|
|
monitor-exit v0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
:try_start_4
|
2020-02-20 19:33:18 +00:00
|
|
|
iget v1, p0, Lx/a/b2/b$a;->indexInArray:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {p0, v5}, Lx/a/b2/b$a;->b(I)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v2, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v2, p0, v1, v5}, Lx/a/b2/b;->a(Lx/a/b2/b;Lx/a/b2/b$a;II)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v2, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v5, Lx/a/b2/b;->m:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {v5, v2}, Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;->getAndDecrement(Ljava/lang/Object;)J
|
|
|
|
|
|
|
|
move-result-wide v5
|
|
|
|
|
|
|
|
and-long v2, v5, v3
|
|
|
|
|
|
|
|
long-to-int v3, v2
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
if-eq v3, v1, :cond_5
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v4, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v4, v4, Lx/a/b2/b;->f:[Lx/a/b2/b$a;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
aget-object v4, v4, v3
|
|
|
|
|
|
|
|
if-eqz v4, :cond_4
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v5, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v5, v5, Lx/a/b2/b;->f:[Lx/a/b2/b$a;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
aput-object v4, v5, v1
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v4, v1}, Lx/a/b2/b$a;->b(I)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v5, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v5, v4, v3, v1}, Lx/a/b2/b;->a(Lx/a/b2/b;Lx/a/b2/b$a;II)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_4
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {}, Lw/u/b/j;->throwNpe()V
|
2019-12-06 03:29:40 +00:00
|
|
|
:try_end_4
|
|
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_0
|
|
|
|
|
|
|
|
throw v2
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
:goto_0
|
|
|
|
:try_start_5
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v1, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v1, v1, Lx/a/b2/b;->f:[Lx/a/b2/b$a;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
:try_end_5
|
|
|
|
.catchall {:try_start_5 .. :try_end_5} :catchall_0
|
|
|
|
|
|
|
|
monitor-exit v0
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v0, Lx/a/b2/b$b;->h:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iput-object v0, p0, Lx/a/b2/b$a;->state:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v1
|
|
|
|
|
|
|
|
monitor-exit v0
|
|
|
|
|
|
|
|
throw v1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public run()V
|
|
|
|
.locals 13
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
:goto_0
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v2, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v2}, Lx/a/b2/b;->d(Lx/a/b2/b;)Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-nez v2, :cond_15
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v2, p0, Lx/a/b2/b$a;->state:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v3, Lx/a/b2/b$b;->h:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eq v2, v3, :cond_15
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {p0}, Lx/a/b2/b$a;->b()Lx/a/b2/i;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
|
|
|
|
const/4 v5, 0x1
|
|
|
|
|
|
|
|
if-nez v2, :cond_9
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v1, p0, Lx/a/b2/b$a;->state:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v2, Lx/a/b2/b$b;->d:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-ne v1, v2, :cond_4
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget v1, p0, Lx/a/b2/b$a;->spins:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget v2, Lx/a/b2/b;->p:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-gt v1, v2, :cond_1
|
|
|
|
|
|
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iput v2, p0, Lx/a/b2/b$a;->spins:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget v2, Lx/a/b2/b;->o:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-lt v1, v2, :cond_8
|
|
|
|
|
|
|
|
invoke-static {}, Ljava/lang/Thread;->yield()V
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
2020-02-20 19:33:18 +00:00
|
|
|
iget v1, p0, Lx/a/b2/b$a;->g:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {}, Lx/a/b2/b;->e()I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-ge v1, v2, :cond_3
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget v1, p0, Lx/a/b2/b$a;->g:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
mul-int/lit8 v1, v1, 0x3
|
|
|
|
|
|
|
|
ushr-int/2addr v1, v5
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {}, Lx/a/b2/b;->e()I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-le v1, v2, :cond_2
|
|
|
|
|
|
|
|
move v1, v2
|
|
|
|
|
|
|
|
:cond_2
|
2020-02-20 19:33:18 +00:00
|
|
|
iput v1, p0, Lx/a/b2/b$a;->g:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_3
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v1, Lx/a/b2/b$b;->f:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {p0, v1}, Lx/a/b2/b$a;->a(Lx/a/b2/b$b;)Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget v1, p0, Lx/a/b2/b$a;->g:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
int-to-long v1, v1
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {p0, v1, v2}, Lx/a/b2/b$a;->a(J)Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_4
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v1, Lx/a/b2/b$b;->f:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {p0, v1}, Lx/a/b2/b$a;->a(Lx/a/b2/b$b;)Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {p0}, Lx/a/b2/b$a;->a()Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-nez v1, :cond_5
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_5
|
2020-02-20 19:33:18 +00:00
|
|
|
iput v0, p0, Lx/a/b2/b$a;->terminationState:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-wide v1, p0, Lx/a/b2/b$a;->e:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
cmp-long v6, v1, v3
|
|
|
|
|
|
|
|
if-nez v6, :cond_6
|
|
|
|
|
|
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
|
|
|
|
move-result-wide v1
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v6, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v6}, Lx/a/b2/b;->c(Lx/a/b2/b;)J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-wide v6
|
|
|
|
|
|
|
|
add-long/2addr v6, v1
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iput-wide v6, p0, Lx/a/b2/b$a;->e:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_6
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v1, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v1}, Lx/a/b2/b;->c(Lx/a/b2/b;)J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-wide v1
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {p0, v1, v2}, Lx/a/b2/b$a;->a(J)Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-nez v1, :cond_7
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
|
|
|
|
move-result-wide v1
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-wide v6, p0, Lx/a/b2/b$a;->e:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
sub-long/2addr v1, v6
|
|
|
|
|
|
|
|
cmp-long v6, v1, v3
|
|
|
|
|
|
|
|
if-ltz v6, :cond_8
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iput-wide v3, p0, Lx/a/b2/b$a;->e:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {p0}, Lx/a/b2/b$a;->d()V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_8
|
|
|
|
:goto_1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto/16 :goto_0
|
|
|
|
|
|
|
|
:cond_9
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v2}, Lx/a/b2/i;->a()Lx/a/b2/l;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
if-eqz v1, :cond_e
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iput-wide v3, p0, Lx/a/b2/b$a;->e:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iput v0, p0, Lx/a/b2/b$a;->i:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v1, p0, Lx/a/b2/b$a;->state:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v3, Lx/a/b2/b$b;->f:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-ne v1, v3, :cond_d
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v1, Lx/a/b2/l;->e:Lx/a/b2/l;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-ne v6, v1, :cond_a
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_2
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-boolean v3, Lw/p;->a:Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eqz v3, :cond_c
|
|
|
|
|
|
|
|
if-eqz v1, :cond_b
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_b
|
|
|
|
new-instance v0, Ljava/lang/AssertionError;
|
|
|
|
|
|
|
|
const-string v1, "Assertion failed"
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_c
|
|
|
|
:goto_3
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v1, Lx/a/b2/b$b;->e:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iput-object v1, p0, Lx/a/b2/b$a;->state:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget v1, Lx/a/b2/b;->r:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iput v1, p0, Lx/a/b2/b$a;->g:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_d
|
2020-02-20 19:33:18 +00:00
|
|
|
iput v0, p0, Lx/a/b2/b$a;->spins:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:cond_e
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-wide v3, v2, Lx/a/b2/i;->d:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v7, Lx/a/b2/l;->d:Lx/a/b2/l;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eq v6, v7, :cond_f
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v3, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v4, Lx/a/b2/b;->m:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const-wide/32 v7, 0x200000
|
|
|
|
|
|
|
|
invoke-virtual {v4, v3, v7, v8}, Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;->addAndGet(Ljava/lang/Object;J)J
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v3, Lx/a/b2/b$b;->e:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {p0, v3}, Lx/a/b2/b$a;->a(Lx/a/b2/b$b;)Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-eqz v3, :cond_11
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v3, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v3}, Lx/a/b2/b;->e(Lx/a/b2/b;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_f
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v7, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v7, v7, Lx/a/b2/b;->e:Ljava/util/concurrent/Semaphore;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {v7}, Ljava/util/concurrent/Semaphore;->availablePermits()I
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
if-nez v7, :cond_10
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_10
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v7, Lx/a/b2/m;->f:Lx/a/b2/n;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v7}, Lx/a/b2/n;->a()J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-wide v7
|
|
|
|
|
|
|
|
sub-long v3, v7, v3
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-wide v9, Lx/a/b2/m;->a:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
cmp-long v11, v3, v9
|
|
|
|
|
|
|
|
if-ltz v11, :cond_11
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-wide v3, p0, Lx/a/b2/b$a;->f:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
sub-long v3, v7, v3
|
|
|
|
|
|
|
|
const/4 v11, 0x5
|
|
|
|
|
|
|
|
int-to-long v11, v11
|
|
|
|
|
|
|
|
mul-long v9, v9, v11
|
|
|
|
|
|
|
|
cmp-long v11, v3, v9
|
|
|
|
|
|
|
|
if-ltz v11, :cond_11
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iput-wide v7, p0, Lx/a/b2/b$a;->f:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v3, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v3}, Lx/a/b2/b;->e(Lx/a/b2/b;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_11
|
|
|
|
:goto_4
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v3, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v3, v2}, Lx/a/b2/b;->a(Lx/a/b2/i;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v2, Lx/a/b2/l;->d:Lx/a/b2/l;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eq v6, v2, :cond_0
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v2, p0, Lx/a/b2/b$a;->j:Lx/a/b2/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v3, Lx/a/b2/b;->m:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const-wide/32 v6, -0x200000
|
|
|
|
|
|
|
|
invoke-virtual {v3, v2, v6, v7}, Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;->addAndGet(Ljava/lang/Object;J)J
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iget-object v2, p0, Lx/a/b2/b$a;->state:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v3, Lx/a/b2/b$b;->h:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eq v2, v3, :cond_0
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v3, Lx/a/b2/b$b;->e:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-ne v2, v3, :cond_12
|
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:cond_12
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
:goto_5
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-boolean v3, Lw/p;->a:Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eqz v3, :cond_14
|
|
|
|
|
|
|
|
if-eqz v5, :cond_13
|
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
|
|
|
:cond_13
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
const-string v1, "Expected BLOCKING state, but has "
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-instance v1, Ljava/lang/AssertionError;
|
|
|
|
|
|
|
|
invoke-direct {v1, v0}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
throw v1
|
|
|
|
|
|
|
|
:cond_14
|
|
|
|
:goto_6
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v2, Lx/a/b2/b$b;->g:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
iput-object v2, p0, Lx/a/b2/b$a;->state:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
goto/16 :goto_0
|
|
|
|
|
|
|
|
:cond_15
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v0, Lx/a/b2/b$b;->h:Lx/a/b2/b$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {p0, v0}, Lx/a/b2/b$a;->a(Lx/a/b2/b$b;)Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|