HeapAnalyzeService$b.smali

.class final Lsg/bigo/apm/plugins/memoryinfo/hprof/HeapAnalyzeService$b;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Ljava/lang/Thread$UncaughtExceptionHandler;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lsg/bigo/apm/plugins/memoryinfo/hprof/HeapAnalyzeService;->a(Z)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x18
    name = null
.end annotation


# instance fields
.field final synthetic a:Lsg/bigo/apm/plugins/memoryinfo/hprof/HeapAnalyzeService;

.field final synthetic b:Ljava/lang/Thread$UncaughtExceptionHandler;


# direct methods
.method constructor <init>(Lsg/bigo/apm/plugins/memoryinfo/hprof/HeapAnalyzeService;Ljava/lang/Thread$UncaughtExceptionHandler;)V
    .registers 3

    iput-object p1, p0, Lsg/bigo/apm/plugins/memoryinfo/hprof/HeapAnalyzeService$b;->a:Lsg/bigo/apm/plugins/memoryinfo/hprof/HeapAnalyzeService;

    iput-object p2, p0, Lsg/bigo/apm/plugins/memoryinfo/hprof/HeapAnalyzeService$b;->b:Ljava/lang/Thread$UncaughtExceptionHandler;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final uncaughtException(Ljava/lang/Thread;Ljava/lang/Throwable;)V
    .registers 4

    .line 96
    iget-object v0, p0, Lsg/bigo/apm/plugins/memoryinfo/hprof/HeapAnalyzeService$b;->a:Lsg/bigo/apm/plugins/memoryinfo/hprof/HeapAnalyzeService;

    invoke-static {v0}, Lsg/bigo/apm/plugins/memoryinfo/hprof/HeapAnalyzeService;->a(Lsg/bigo/apm/plugins/memoryinfo/hprof/HeapAnalyzeService;)Z

    move-result v0

    if-eqz v0, :cond_1b

    const-string v0, "throwable"

    invoke-static {p2, v0}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-static {p2}, Lsg/bigo/apm/plugins/memoryinfo/c/b;->a(Ljava/lang/Throwable;)Ljava/lang/OutOfMemoryError;

    move-result-object v0

    if-eqz v0, :cond_1b

    const-string p1, "HeapAnalyzeService"

    const-string p2, "suppress oom"

    .line 97
    invoke-static {p1, p2}, Lsg/bigo/log/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    return-void

    .line 99
    :cond_1b
    iget-object v0, p0, Lsg/bigo/apm/plugins/memoryinfo/hprof/HeapAnalyzeService$b;->b:Ljava/lang/Thread$UncaughtExceptionHandler;

    if-eqz v0, :cond_22

    invoke-interface {v0, p1, p2}, Ljava/lang/Thread$UncaughtExceptionHandler;->uncaughtException(Ljava/lang/Thread;Ljava/lang/Throwable;)V

    :cond_22
    return-void
.end method