class sun.management.GarbageCollectorImpl extends sun.management.MemoryManagerImpl implements com.sun.management.GarbageCollectorMXBean
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.management.GarbageCollectorImpl
super_class: sun.management.MemoryManagerImpl
{
private java.lang.String[] poolNames;
descriptor: [Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private sun.management.GcInfoBuilder gcInfoBuilder;
descriptor: Lsun/management/GcInfoBuilder;
flags: (0x0002) ACC_PRIVATE
void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial sun.management.MemoryManagerImpl.<init>:(Ljava/lang/String;)V
1: aload 0
aconst_null
putfield sun.management.GarbageCollectorImpl.poolNames:[Ljava/lang/String;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/management/GarbageCollectorImpl;
0 3 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public native long getCollectionCount();
descriptor: ()J
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
public native long getCollectionTime();
descriptor: ()J
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
synchronized java.lang.String[] getAllPoolNames();
descriptor: ()[Ljava/lang/String;
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
getfield sun.management.GarbageCollectorImpl.poolNames:[Ljava/lang/String;
ifnonnull 10
1: invokestatic java.lang.management.ManagementFactory.getMemoryPoolMXBeans:()Ljava/util/List;
astore 1
start local 1 2: aload 0
aload 1
invokeinterface java.util.List.size:()I
anewarray java.lang.String
putfield sun.management.GarbageCollectorImpl.poolNames:[Ljava/lang/String;
3: iconst_0
istore 2
start local 2 4: aload 1
invokeinterface java.util.List.listIterator:()Ljava/util/ListIterator;
astore 3
start local 3 5: goto 9
6: StackMap locals: java.util.List int java.util.ListIterator
StackMap stack:
aload 3
invokeinterface java.util.ListIterator.next:()Ljava/lang/Object;
checkcast java.lang.management.MemoryPoolMXBean
astore 4
start local 4 7: aload 0
getfield sun.management.GarbageCollectorImpl.poolNames:[Ljava/lang/String;
iload 2
aload 4
invokeinterface java.lang.management.MemoryPoolMXBean.getName:()Ljava/lang/String;
aastore
end local 4 8: iinc 2 1
9: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.ListIterator.hasNext:()Z
ifne 6
end local 3 end local 2 end local 1 10: StackMap locals:
StackMap stack:
aload 0
getfield sun.management.GarbageCollectorImpl.poolNames:[Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/management/GarbageCollectorImpl;
2 10 1 pools Ljava/util/List;
4 10 2 i I
5 10 3 iter Ljava/util/ListIterator;
7 8 4 p Ljava/lang/management/MemoryPoolMXBean;
public com.sun.management.GcInfo getLastGcInfo();
descriptor: ()Lcom/sun/management/GcInfo;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
dup
astore 1
monitorenter
1: aload 0
getfield sun.management.GarbageCollectorImpl.gcInfoBuilder:Lsun/management/GcInfoBuilder;
ifnonnull 3
2: aload 0
new sun.management.GcInfoBuilder
dup
aload 0
aload 0
invokevirtual sun.management.GarbageCollectorImpl.getAllPoolNames:()[Ljava/lang/String;
invokespecial sun.management.GcInfoBuilder.<init>:(Ljava/lang/management/GarbageCollectorMXBean;[Ljava/lang/String;)V
putfield sun.management.GarbageCollectorImpl.gcInfoBuilder:Lsun/management/GcInfoBuilder;
3: StackMap locals: sun.management.GarbageCollectorImpl
StackMap stack:
aload 1
monitorexit
4: goto 7
StackMap locals:
StackMap stack: java.lang.Throwable
5: aload 1
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
aload 0
getfield sun.management.GarbageCollectorImpl.gcInfoBuilder:Lsun/management/GcInfoBuilder;
invokevirtual sun.management.GcInfoBuilder.getLastGcInfo:()Lcom/sun/management/GcInfo;
astore 1
start local 1 8: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/management/GarbageCollectorImpl;
8 9 1 info Lcom/sun/management/GcInfo;
Exception table:
from to target type
1 4 5 any
5 6 5 any
}
SourceFile: "GarbageCollectorImpl.java"