b$j.smali
.class final Lcom/google/common/util/concurrent/b$j;
.super Lcom/google/common/util/concurrent/b$a;
.source "AbstractFuture.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/util/concurrent/b;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1a
name = "j"
.end annotation
# static fields
.field static final a:Lsun/misc/Unsafe;
.field static final b:J
.field static final c:J
.field static final d:J
.field static final e:J
.field static final f:J
# direct methods
.method static constructor <clinit>()V
.registers 4
.line 1
:try_start_0
invoke-static {}, Lsun/misc/Unsafe;->getUnsafe()Lsun/misc/Unsafe;
move-result-object v0
:try_end_4
.catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_4} :catch_5
goto :goto_10
.line 2
:catch_5
:try_start_5
new-instance v0, Lcom/google/common/util/concurrent/c;
invoke-direct {v0}, Lcom/google/common/util/concurrent/c;-><init>()V
.line 3
invoke-static {v0}, Ljava/security/AccessController;->doPrivileged(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lsun/misc/Unsafe;
:try_end_10
.catch Ljava/security/PrivilegedActionException; {:try_start_5 .. :try_end_10} :catch_5f
.line 4
:goto_10
:try_start_10
const-class v1, Lcom/google/common/util/concurrent/b;
:try_end_12
.catch Ljava/lang/Exception; {:try_start_10 .. :try_end_12} :catch_55
const-string v2, "waiters"
.line 5
:try_start_14
invoke-virtual {v1, v2}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v2
invoke-virtual {v0, v2}, Lsun/misc/Unsafe;->objectFieldOffset(Ljava/lang/reflect/Field;)J
move-result-wide v2
sput-wide v2, Lcom/google/common/util/concurrent/b$j;->c:J
:try_end_1e
.catch Ljava/lang/Exception; {:try_start_14 .. :try_end_1e} :catch_55
const-string v2, "listeners"
.line 6
:try_start_20
invoke-virtual {v1, v2}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v2
invoke-virtual {v0, v2}, Lsun/misc/Unsafe;->objectFieldOffset(Ljava/lang/reflect/Field;)J
move-result-wide v2
sput-wide v2, Lcom/google/common/util/concurrent/b$j;->b:J
:try_end_2a
.catch Ljava/lang/Exception; {:try_start_20 .. :try_end_2a} :catch_55
const-string v2, "value"
.line 7
:try_start_2c
invoke-virtual {v1, v2}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v1
invoke-virtual {v0, v1}, Lsun/misc/Unsafe;->objectFieldOffset(Ljava/lang/reflect/Field;)J
move-result-wide v1
sput-wide v1, Lcom/google/common/util/concurrent/b$j;->d:J
.line 8
const-class v1, Lcom/google/common/util/concurrent/b$k;
:try_end_38
.catch Ljava/lang/Exception; {:try_start_2c .. :try_end_38} :catch_55
const-string v2, "b"
:try_start_3a
invoke-virtual {v1, v2}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v1
invoke-virtual {v0, v1}, Lsun/misc/Unsafe;->objectFieldOffset(Ljava/lang/reflect/Field;)J
move-result-wide v1
sput-wide v1, Lcom/google/common/util/concurrent/b$j;->e:J
.line 9
const-class v1, Lcom/google/common/util/concurrent/b$k;
:try_end_46
.catch Ljava/lang/Exception; {:try_start_3a .. :try_end_46} :catch_55
const-string v2, "c"
:try_start_48
invoke-virtual {v1, v2}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v1
invoke-virtual {v0, v1}, Lsun/misc/Unsafe;->objectFieldOffset(Ljava/lang/reflect/Field;)J
move-result-wide v1
sput-wide v1, Lcom/google/common/util/concurrent/b$j;->f:J
.line 10
sput-object v0, Lcom/google/common/util/concurrent/b$j;->a:Lsun/misc/Unsafe;
:try_end_54
.catch Ljava/lang/Exception; {:try_start_48 .. :try_end_54} :catch_55
return-void
:catch_55
move-exception v0
.line 11
invoke-static {v0}, Lcom/google/common/base/B;->b(Ljava/lang/Throwable;)V
.line 12
new-instance v1, Ljava/lang/RuntimeException;
invoke-direct {v1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
throw v1
:catch_5f
move-exception v0
.line 13
new-instance v1, Ljava/lang/RuntimeException;
invoke-virtual {v0}, Ljava/security/PrivilegedActionException;->getCause()Ljava/lang/Throwable;
move-result-object v0
const-string v2, "Could not initialize intrinsics"
invoke-direct {v1, v2, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v1
.end method
.method private constructor <init>()V
.registers 2
const/4 v0, 0x0
.line 1
invoke-direct {p0, v0}, Lcom/google/common/util/concurrent/b$a;-><init>(Lcom/google/common/util/concurrent/a;)V
return-void
.end method
.method synthetic constructor <init>(Lcom/google/common/util/concurrent/a;)V
.registers 2
.line 2
invoke-direct {p0}, Lcom/google/common/util/concurrent/b$j;-><init>()V
return-void
.end method
# virtual methods
.method a(Lcom/google/common/util/concurrent/b$k;Lcom/google/common/util/concurrent/b$k;)V
.registers 6
.line 2
sget-object v0, Lcom/google/common/util/concurrent/b$j;->a:Lsun/misc/Unsafe;
sget-wide v1, Lcom/google/common/util/concurrent/b$j;->f:J
invoke-virtual {v0, p1, v1, v2, p2}, Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V
return-void
.end method
.method a(Lcom/google/common/util/concurrent/b$k;Ljava/lang/Thread;)V
.registers 6
.line 1
sget-object v0, Lcom/google/common/util/concurrent/b$j;->a:Lsun/misc/Unsafe;
sget-wide v1, Lcom/google/common/util/concurrent/b$j;->e:J
invoke-virtual {v0, p1, v1, v2, p2}, Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V
return-void
.end method
.method a(Lcom/google/common/util/concurrent/b;Lcom/google/common/util/concurrent/b$d;Lcom/google/common/util/concurrent/b$d;)Z
.registers 10
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/common/util/concurrent/b<",
"*>;",
"Lcom/google/common/util/concurrent/b$d;",
"Lcom/google/common/util/concurrent/b$d;",
")Z"
}
.end annotation
.line 4
sget-object v0, Lcom/google/common/util/concurrent/b$j;->a:Lsun/misc/Unsafe;
sget-wide v2, Lcom/google/common/util/concurrent/b$j;->b:J
move-object v1, p1
move-object v4, p2
move-object v5, p3
invoke-virtual/range {v0 .. v5}, Lsun/misc/Unsafe;->compareAndSwapObject(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Z
move-result p1
return p1
.end method
.method a(Lcom/google/common/util/concurrent/b;Lcom/google/common/util/concurrent/b$k;Lcom/google/common/util/concurrent/b$k;)Z
.registers 10
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/common/util/concurrent/b<",
"*>;",
"Lcom/google/common/util/concurrent/b$k;",
"Lcom/google/common/util/concurrent/b$k;",
")Z"
}
.end annotation
.line 3
sget-object v0, Lcom/google/common/util/concurrent/b$j;->a:Lsun/misc/Unsafe;
sget-wide v2, Lcom/google/common/util/concurrent/b$j;->c:J
move-object v1, p1
move-object v4, p2
move-object v5, p3
invoke-virtual/range {v0 .. v5}, Lsun/misc/Unsafe;->compareAndSwapObject(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Z
move-result p1
return p1
.end method
.method a(Lcom/google/common/util/concurrent/b;Ljava/lang/Object;Ljava/lang/Object;)Z
.registers 10
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/common/util/concurrent/b<",
"*>;",
"Ljava/lang/Object;",
"Ljava/lang/Object;",
")Z"
}
.end annotation
.line 5
sget-object v0, Lcom/google/common/util/concurrent/b$j;->a:Lsun/misc/Unsafe;
sget-wide v2, Lcom/google/common/util/concurrent/b$j;->d:J
move-object v1, p1
move-object v4, p2
move-object v5, p3
invoke-virtual/range {v0 .. v5}, Lsun/misc/Unsafe;->compareAndSwapObject(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Z
move-result p1
return p1
.end method