You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
119 lines
2.3 KiB
119 lines
2.3 KiB
.class final Lcom/google/common/cache/Striped64$1; |
|
.super Ljava/lang/Object; |
|
.source "Striped64.java" |
|
|
|
# interfaces |
|
.implements Ljava/security/PrivilegedExceptionAction; |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingMethod; |
|
value = Lcom/google/common/cache/Striped64;->getUnsafe()Lsun/misc/Unsafe; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0x8 |
|
name = null |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"Ljava/lang/Object;", |
|
"Ljava/security/PrivilegedExceptionAction", |
|
"<", |
|
"Lsun/misc/Unsafe;", |
|
">;" |
|
} |
|
.end annotation |
|
|
|
|
|
# direct methods |
|
.method constructor <init>()V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 330 |
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public bridge synthetic run()Ljava/lang/Object; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 330 |
|
invoke-virtual {p0}, Lcom/google/common/cache/Striped64$1;->run()Lsun/misc/Unsafe; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public run()Lsun/misc/Unsafe; |
|
.locals 6 |
|
|
|
.prologue |
|
.line 332 |
|
const-class v1, Lsun/misc/Unsafe; |
|
|
|
.line 333 |
|
invoke-virtual {v1}, Ljava/lang/Class;->getDeclaredFields()[Ljava/lang/reflect/Field; |
|
|
|
move-result-object v2 |
|
|
|
array-length v3, v2 |
|
|
|
const/4 v0, 0x0 |
|
|
|
:goto_0 |
|
if-ge v0, v3, :cond_1 |
|
|
|
aget-object v4, v2, v0 |
|
|
|
.line 334 |
|
const/4 v5, 0x1 |
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/reflect/Field;->setAccessible(Z)V |
|
|
|
.line 335 |
|
const/4 v5, 0x0 |
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v4 |
|
|
|
.line 336 |
|
invoke-virtual {v1, v4}, Ljava/lang/Class;->isInstance(Ljava/lang/Object;)Z |
|
|
|
move-result v5 |
|
|
|
if-eqz v5, :cond_0 |
|
|
|
.line 337 |
|
invoke-virtual {v1, v4}, Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Lsun/misc/Unsafe; |
|
|
|
return-object v0 |
|
|
|
.line 333 |
|
:cond_0 |
|
add-int/lit8 v0, v0, 0x1 |
|
|
|
goto :goto_0 |
|
|
|
.line 339 |
|
:cond_1 |
|
new-instance v0, Ljava/lang/NoSuchFieldError; |
|
|
|
const-string v1, "the Unsafe" |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/NoSuchFieldError;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
.end method
|
|
|