class sun.management.MemoryImpl extends sun.management.NotificationEmitterSupport implements java.lang.management.MemoryMXBean
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.management.MemoryImpl
super_class: sun.management.NotificationEmitterSupport
{
private final sun.management.VMManagement jvm;
descriptor: Lsun/management/VMManagement;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static java.lang.management.MemoryPoolMXBean[] pools;
descriptor: [Ljava/lang/management/MemoryPoolMXBean;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static java.lang.management.MemoryManagerMXBean[] mgrs;
descriptor: [Ljava/lang/management/MemoryManagerMXBean;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static final java.lang.String notifName;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "javax.management.Notification"
private static final java.lang.String[] notifTypes;
descriptor: [Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String[] notifMsgs;
descriptor: [Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static long seqNumber;
descriptor: J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: aconst_null
putstatic sun.management.MemoryImpl.pools:[Ljava/lang/management/MemoryPoolMXBean;
1: aconst_null
putstatic sun.management.MemoryImpl.mgrs:[Ljava/lang/management/MemoryManagerMXBean;
2: iconst_2
anewarray java.lang.String
dup
iconst_0
3: ldc "java.management.memory.threshold.exceeded"
aastore
dup
iconst_1
4: ldc "java.management.memory.collection.threshold.exceeded"
aastore
5: putstatic sun.management.MemoryImpl.notifTypes:[Ljava/lang/String;
6: iconst_2
anewarray java.lang.String
dup
iconst_0
7: ldc "Memory usage exceeds usage threshold"
aastore
dup
iconst_1
8: ldc "Memory usage exceeds collection usage threshold"
aastore
9: putstatic sun.management.MemoryImpl.notifMsgs:[Ljava/lang/String;
10: lconst_0
putstatic sun.management.MemoryImpl.seqNumber:J
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(sun.management.VMManagement);
descriptor: (Lsun/management/VMManagement;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial sun.management.NotificationEmitterSupport.<init>:()V
1: aload 0
aload 1
putfield sun.management.MemoryImpl.jvm:Lsun/management/VMManagement;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/management/MemoryImpl;
0 3 1 vm Lsun/management/VMManagement;
MethodParameters:
Name Flags
vm
public int getObjectPendingFinalizationCount();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic jdk.internal.misc.VM.getFinalRefCount:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/management/MemoryImpl;
public void gc();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
invokevirtual java.lang.Runtime.gc:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/management/MemoryImpl;
public java.lang.management.MemoryUsage getHeapMemoryUsage();
descriptor: ()Ljava/lang/management/MemoryUsage;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
invokevirtual sun.management.MemoryImpl.getMemoryUsage0:(Z)Ljava/lang/management/MemoryUsage;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/management/MemoryImpl;
public java.lang.management.MemoryUsage getNonHeapMemoryUsage();
descriptor: ()Ljava/lang/management/MemoryUsage;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
invokevirtual sun.management.MemoryImpl.getMemoryUsage0:(Z)Ljava/lang/management/MemoryUsage;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/management/MemoryImpl;
public boolean isVerbose();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.management.MemoryImpl.jvm:Lsun/management/VMManagement;
invokeinterface sun.management.VMManagement.getVerboseGC:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/management/MemoryImpl;
public void setVerbose(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: invokestatic sun.management.Util.checkControlAccess:()V
1: aload 0
iload 1
invokevirtual sun.management.MemoryImpl.setVerboseGC:(Z)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/management/MemoryImpl;
0 3 1 value Z
MethodParameters:
Name Flags
value
static synchronized java.lang.management.MemoryPoolMXBean[] getMemoryPools();
descriptor: ()[Ljava/lang/management/MemoryPoolMXBean;
flags: (0x0028) ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.management.MemoryImpl.pools:[Ljava/lang/management/MemoryPoolMXBean;
ifnonnull 2
1: invokestatic sun.management.MemoryImpl.getMemoryPools0:()[Ljava/lang/management/MemoryPoolMXBean;
putstatic sun.management.MemoryImpl.pools:[Ljava/lang/management/MemoryPoolMXBean;
2: StackMap locals:
StackMap stack:
getstatic sun.management.MemoryImpl.pools:[Ljava/lang/management/MemoryPoolMXBean;
areturn
LocalVariableTable:
Start End Slot Name Signature
static synchronized java.lang.management.MemoryManagerMXBean[] getMemoryManagers();
descriptor: ()[Ljava/lang/management/MemoryManagerMXBean;
flags: (0x0028) ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.management.MemoryImpl.mgrs:[Ljava/lang/management/MemoryManagerMXBean;
ifnonnull 2
1: invokestatic sun.management.MemoryImpl.getMemoryManagers0:()[Ljava/lang/management/MemoryManagerMXBean;
putstatic sun.management.MemoryImpl.mgrs:[Ljava/lang/management/MemoryManagerMXBean;
2: StackMap locals:
StackMap stack:
getstatic sun.management.MemoryImpl.mgrs:[Ljava/lang/management/MemoryManagerMXBean;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static native java.lang.management.MemoryPoolMXBean[] getMemoryPools0();
descriptor: ()[Ljava/lang/management/MemoryPoolMXBean;
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static native java.lang.management.MemoryManagerMXBean[] getMemoryManagers0();
descriptor: ()[Ljava/lang/management/MemoryManagerMXBean;
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private native java.lang.management.MemoryUsage getMemoryUsage0(boolean);
descriptor: (Z)Ljava/lang/management/MemoryUsage;
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
heap
private native void setVerboseGC(boolean);
descriptor: (Z)V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
value
public javax.management.MBeanNotificationInfo[] getNotificationInfo();
descriptor: ()[Ljavax/management/MBeanNotificationInfo;
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=1, args_size=1
start local 0 0: iconst_1
anewarray javax.management.MBeanNotificationInfo
dup
iconst_0
1: new javax.management.MBeanNotificationInfo
dup
getstatic sun.management.MemoryImpl.notifTypes:[Ljava/lang/String;
ldc "javax.management.Notification"
ldc "Memory Notification"
invokespecial javax.management.MBeanNotificationInfo.<init>:([Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
aastore
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/management/MemoryImpl;
private static java.lang.String getNotifMsg(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: goto 5
2: StackMap locals: int
StackMap stack:
aload 0
getstatic sun.management.MemoryImpl.notifTypes:[Ljava/lang/String;
iload 1
aaload
if_acmpne 4
3: getstatic sun.management.MemoryImpl.notifMsgs:[Ljava/lang/String;
iload 1
aaload
areturn
4: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
5: iload 1
getstatic sun.management.MemoryImpl.notifTypes:[Ljava/lang/String;
arraylength
if_icmplt 2
end local 1 6: ldc "Unknown message"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 notifType Ljava/lang/String;
1 6 1 i I
MethodParameters:
Name Flags
notifType
private static long getNextSeqNumber();
descriptor: ()J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: getstatic sun.management.MemoryImpl.seqNumber:J
lconst_1
ladd
dup2
putstatic sun.management.MemoryImpl.seqNumber:J
lreturn
LocalVariableTable:
Start End Slot Name Signature
static void createNotification(java.lang.String, java.lang.String, java.lang.management.MemoryUsage, long);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/management/MemoryUsage;J)V
flags: (0x0008) ACC_STATIC
Code:
stack=9, locals=12, args_size=4
start local 0 start local 1 start local 2 start local 3 0: invokestatic java.lang.management.ManagementFactory.getMemoryMXBean:()Ljava/lang/management/MemoryMXBean;
checkcast sun.management.MemoryImpl
astore 5
start local 5 1: aload 5
invokevirtual sun.management.MemoryImpl.hasListeners:()Z
ifne 3
2: return
3: StackMap locals: sun.management.MemoryImpl
StackMap stack:
invokestatic java.lang.System.currentTimeMillis:()J
lstore 6
start local 6 4: aload 0
invokestatic sun.management.MemoryImpl.getNotifMsg:(Ljava/lang/String;)Ljava/lang/String;
astore 8
start local 8 5: new javax.management.Notification
dup
aload 0
6: aload 5
invokevirtual sun.management.MemoryImpl.getObjectName:()Ljavax/management/ObjectName;
7: invokestatic sun.management.MemoryImpl.getNextSeqNumber:()J
8: lload 6
9: aload 8
10: invokespecial javax.management.Notification.<init>:(Ljava/lang/String;Ljava/lang/Object;JJLjava/lang/String;)V
astore 9
start local 9 11: new java.lang.management.MemoryNotificationInfo
dup
aload 1
12: aload 2
13: lload 3
14: invokespecial java.lang.management.MemoryNotificationInfo.<init>:(Ljava/lang/String;Ljava/lang/management/MemoryUsage;J)V
15: astore 10
start local 10 16: aload 10
invokestatic sun.management.MemoryNotifInfoCompositeData.toCompositeData:(Ljava/lang/management/MemoryNotificationInfo;)Ljavax/management/openmbean/CompositeData;
17: astore 11
start local 11 18: aload 9
aload 11
invokevirtual javax.management.Notification.setUserData:(Ljava/lang/Object;)V
19: aload 5
aload 9
invokevirtual sun.management.MemoryImpl.sendNotification:(Ljavax/management/Notification;)V
20: return
end local 11 end local 10 end local 9 end local 8 end local 6 end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 notifType Ljava/lang/String;
0 21 1 poolName Ljava/lang/String;
0 21 2 usage Ljava/lang/management/MemoryUsage;
0 21 3 count J
1 21 5 mbean Lsun/management/MemoryImpl;
4 21 6 timestamp J
5 21 8 msg Ljava/lang/String;
11 21 9 notif Ljavax/management/Notification;
16 21 10 info Ljava/lang/management/MemoryNotificationInfo;
18 21 11 cd Ljavax/management/openmbean/CompositeData;
MethodParameters:
Name Flags
notifType
poolName
usage
count
public javax.management.ObjectName getObjectName();
descriptor: ()Ljavax/management/ObjectName;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "java.lang:type=Memory"
invokestatic sun.management.Util.newObjectName:(Ljava/lang/String;)Ljavax/management/ObjectName;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/management/MemoryImpl;
}
SourceFile: "MemoryImpl.java"