public final class jdk.jfr.internal.EventWriter
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.jfr.internal.EventWriter
super_class: java.lang.Object
{
private static final long MAX_EVENT_SIZE;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 268435455
private static final jdk.internal.misc.Unsafe unsafe;
descriptor: Ljdk/internal/misc/Unsafe;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final jdk.jfr.internal.JVM jvm;
descriptor: Ljdk/jfr/internal/JVM;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final long threadID;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private long startPosition;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long startPositionAddress;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long currentPosition;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long maxPosition;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private boolean valid;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
boolean notified;
descriptor: Z
flags: (0x0000)
private jdk.jfr.internal.PlatformEventType eventType;
descriptor: Ljdk/jfr/internal/PlatformEventType;
flags: (0x0002) ACC_PRIVATE
private boolean started;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean flushOnEnd;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean largeSize;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic jdk.internal.misc.Unsafe.getUnsafe:()Ljdk/internal/misc/Unsafe;
putstatic jdk.jfr.internal.EventWriter.unsafe:Ljdk/internal/misc/Unsafe;
1: invokestatic jdk.jfr.internal.JVM.getJVM:()Ljdk/jfr/internal/JVM;
putstatic jdk.jfr.internal.EventWriter.jvm:Ljdk/jfr/internal/JVM;
return
LocalVariableTable:
Start End Slot Name Signature
public static jdk.jfr.internal.EventWriter getEventWriter();
descriptor: ()Ljdk/jfr/internal/EventWriter;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=0
0: invokestatic jdk.jfr.internal.JVM.getEventWriter:()Ljava/lang/Object;
checkcast jdk.jfr.internal.EventWriter
astore 0
start local 0 1: aload 0
ifnull 2
aload 0
goto 3
StackMap locals: jdk.jfr.internal.EventWriter
StackMap stack:
2: invokestatic jdk.jfr.internal.JVM.newEventWriter:()Ljdk/jfr/internal/EventWriter;
StackMap locals:
StackMap stack: jdk.jfr.internal.EventWriter
3: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 ew Ljdk/jfr/internal/EventWriter;
public void putBoolean(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
invokevirtual jdk.jfr.internal.EventWriter.isValidForSize:(I)Z
ifeq 2
1: aload 0
dup
getfield jdk.jfr.internal.EventWriter.currentPosition:J
aload 0
getfield jdk.jfr.internal.EventWriter.currentPosition:J
iload 1
invokestatic jdk.jfr.internal.Bits.putBoolean:(JZ)I
i2l
ladd
putfield jdk.jfr.internal.EventWriter.currentPosition:J
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jfr/internal/EventWriter;
0 3 1 i Z
MethodParameters:
Name Flags
i
public void putByte(byte);
descriptor: (B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
invokevirtual jdk.jfr.internal.EventWriter.isValidForSize:(I)Z
ifeq 3
1: getstatic jdk.jfr.internal.EventWriter.unsafe:Ljdk/internal/misc/Unsafe;
aload 0
getfield jdk.jfr.internal.EventWriter.currentPosition:J
iload 1
invokevirtual jdk.internal.misc.Unsafe.putByte:(JB)V
2: aload 0
dup
getfield jdk.jfr.internal.EventWriter.currentPosition:J
lconst_1
ladd
putfield jdk.jfr.internal.EventWriter.currentPosition:J
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/jfr/internal/EventWriter;
0 4 1 i B
MethodParameters:
Name Flags
i
public void putChar(char);
descriptor: (C)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_3
invokevirtual jdk.jfr.internal.EventWriter.isValidForSize:(I)Z
ifeq 2
1: aload 0
iload 1
i2l
invokevirtual jdk.jfr.internal.EventWriter.putUncheckedLong:(J)V
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jfr/internal/EventWriter;
0 3 1 v C
MethodParameters:
Name Flags
v
private void putUncheckedChar(char);
descriptor: (C)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
i2l
invokevirtual jdk.jfr.internal.EventWriter.putUncheckedLong:(J)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jfr/internal/EventWriter;
0 2 1 v C
MethodParameters:
Name Flags
v
public void putShort(short);
descriptor: (S)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_3
invokevirtual jdk.jfr.internal.EventWriter.isValidForSize:(I)Z
ifeq 2
1: aload 0
iload 1
ldc 65535
iand
i2l
invokevirtual jdk.jfr.internal.EventWriter.putUncheckedLong:(J)V
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jfr/internal/EventWriter;
0 3 1 v S
MethodParameters:
Name Flags
v
public void putInt(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_5
invokevirtual jdk.jfr.internal.EventWriter.isValidForSize:(I)Z
ifeq 2
1: aload 0
iload 1
i2l
ldc 4294967295
land
invokevirtual jdk.jfr.internal.EventWriter.putUncheckedLong:(J)V
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jfr/internal/EventWriter;
0 3 1 v I
MethodParameters:
Name Flags
v
private void putUncheckedInt(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
i2l
ldc 4294967295
land
invokevirtual jdk.jfr.internal.EventWriter.putUncheckedLong:(J)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jfr/internal/EventWriter;
0 2 1 v I
MethodParameters:
Name Flags
v
public void putFloat(float);
descriptor: (F)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_4
invokevirtual jdk.jfr.internal.EventWriter.isValidForSize:(I)Z
ifeq 2
1: aload 0
dup
getfield jdk.jfr.internal.EventWriter.currentPosition:J
aload 0
getfield jdk.jfr.internal.EventWriter.currentPosition:J
fload 1
invokestatic jdk.jfr.internal.Bits.putFloat:(JF)I
i2l
ladd
putfield jdk.jfr.internal.EventWriter.currentPosition:J
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jfr/internal/EventWriter;
0 3 1 i F
MethodParameters:
Name Flags
i
public void putLong(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
bipush 9
invokevirtual jdk.jfr.internal.EventWriter.isValidForSize:(I)Z
ifeq 2
1: aload 0
lload 1
invokevirtual jdk.jfr.internal.EventWriter.putUncheckedLong:(J)V
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jfr/internal/EventWriter;
0 3 1 v J
MethodParameters:
Name Flags
v
public void putDouble(double);
descriptor: (D)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: aload 0
bipush 8
invokevirtual jdk.jfr.internal.EventWriter.isValidForSize:(I)Z
ifeq 2
1: aload 0
dup
getfield jdk.jfr.internal.EventWriter.currentPosition:J
aload 0
getfield jdk.jfr.internal.EventWriter.currentPosition:J
dload 1
invokestatic jdk.jfr.internal.Bits.putDouble:(JD)I
i2l
ladd
putfield jdk.jfr.internal.EventWriter.currentPosition:J
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jfr/internal/EventWriter;
0 3 1 i D
MethodParameters:
Name Flags
i
public void putString(java.lang.String, jdk.jfr.internal.StringPool);
descriptor: (Ljava/lang/String;Ljdk/jfr/internal/StringPool;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 3
1: aload 0
getstatic jdk.jfr.internal.consumer.StringParser$Encoding.NULL:Ljdk/jfr/internal/consumer/StringParser$Encoding;
invokevirtual jdk.jfr.internal.consumer.StringParser$Encoding.byteValue:()B
invokevirtual jdk.jfr.internal.EventWriter.putByte:(B)V
2: return
3: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.String.length:()I
istore 3
start local 3 4: iload 3
ifne 7
5: aload 0
getstatic jdk.jfr.internal.consumer.StringParser$Encoding.EMPTY_STRING:Ljdk/jfr/internal/consumer/StringParser$Encoding;
invokevirtual jdk.jfr.internal.consumer.StringParser$Encoding.byteValue:()B
invokevirtual jdk.jfr.internal.EventWriter.putByte:(B)V
6: return
7: StackMap locals: int
StackMap stack:
iload 3
bipush 16
if_icmple 13
iload 3
sipush 128
if_icmpge 13
8: aload 1
invokestatic jdk.jfr.internal.StringPool.addString:(Ljava/lang/String;)J
lstore 4
start local 4 9: lload 4
lconst_0
lcmp
ifle 13
10: aload 0
getstatic jdk.jfr.internal.consumer.StringParser$Encoding.CONSTANT_POOL:Ljdk/jfr/internal/consumer/StringParser$Encoding;
invokevirtual jdk.jfr.internal.consumer.StringParser$Encoding.byteValue:()B
invokevirtual jdk.jfr.internal.EventWriter.putByte:(B)V
11: aload 0
lload 4
invokevirtual jdk.jfr.internal.EventWriter.putLong:(J)V
12: return
end local 4 13: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual jdk.jfr.internal.EventWriter.putStringValue:(Ljava/lang/String;)V
14: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljdk/jfr/internal/EventWriter;
0 15 1 s Ljava/lang/String;
0 15 2 pool Ljdk/jfr/internal/StringPool;
4 15 3 length I
9 13 4 l J
MethodParameters:
Name Flags
s
pool
private void putStringValue(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.String.length:()I
istore 2
start local 2 1: aload 0
bipush 6
iconst_3
iload 2
imul
iadd
invokevirtual jdk.jfr.internal.EventWriter.isValidForSize:(I)Z
ifeq 9
2: aload 0
getstatic jdk.jfr.internal.consumer.StringParser$Encoding.CHAR_ARRAY:Ljdk/jfr/internal/consumer/StringParser$Encoding;
invokevirtual jdk.jfr.internal.consumer.StringParser$Encoding.byteValue:()B
invokevirtual jdk.jfr.internal.EventWriter.putUncheckedByte:(B)V
3: aload 0
iload 2
invokevirtual jdk.jfr.internal.EventWriter.putUncheckedInt:(I)V
4: iconst_0
istore 3
start local 3 5: goto 8
6: StackMap locals: int int
StackMap stack:
aload 0
aload 1
iload 3
invokevirtual java.lang.String.charAt:(I)C
invokevirtual jdk.jfr.internal.EventWriter.putUncheckedChar:(C)V
7: iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
iload 2
if_icmplt 6
end local 3 9: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/jfr/internal/EventWriter;
0 10 1 s Ljava/lang/String;
1 10 2 length I
5 9 3 i I
MethodParameters:
Name Flags
s
public void putEventThread();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield jdk.jfr.internal.EventWriter.threadID:J
invokevirtual jdk.jfr.internal.EventWriter.putLong:(J)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jfr/internal/EventWriter;
public void putThread(java.lang.Thread);
descriptor: (Ljava/lang/Thread;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 3
1: aload 0
lconst_0
invokevirtual jdk.jfr.internal.EventWriter.putLong:(J)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
getstatic jdk.jfr.internal.EventWriter.jvm:Ljdk/jfr/internal/JVM;
aload 1
invokevirtual jdk.jfr.internal.JVM.getThreadId:(Ljava/lang/Thread;)J
invokevirtual jdk.jfr.internal.EventWriter.putLong:(J)V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/jfr/internal/EventWriter;
0 5 1 athread Ljava/lang/Thread;
MethodParameters:
Name Flags
athread
public void putClass(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 3
1: aload 0
lconst_0
invokevirtual jdk.jfr.internal.EventWriter.putLong:(J)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic jdk.jfr.internal.JVM.getClassIdNonIntrinsic:(Ljava/lang/Class;)J
invokevirtual jdk.jfr.internal.EventWriter.putLong:(J)V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/jfr/internal/EventWriter;
0 5 1 aClass Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
aClass
public void putStackTrace();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jfr.internal.EventWriter.eventType:Ljdk/jfr/internal/PlatformEventType;
invokevirtual jdk.jfr.internal.PlatformEventType.getStackTraceEnabled:()Z
ifeq 3
1: aload 0
getstatic jdk.jfr.internal.EventWriter.jvm:Ljdk/jfr/internal/JVM;
aload 0
getfield jdk.jfr.internal.EventWriter.eventType:Ljdk/jfr/internal/PlatformEventType;
invokevirtual jdk.jfr.internal.PlatformEventType.getStackTraceOffset:()I
invokevirtual jdk.jfr.internal.JVM.getStackTraceId:(I)J
invokevirtual jdk.jfr.internal.EventWriter.putLong:(J)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
lconst_0
invokevirtual jdk.jfr.internal.EventWriter.putLong:(J)V
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/jfr/internal/EventWriter;
private void reserveEventSizeField();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield jdk.jfr.internal.EventWriter.eventType:Ljdk/jfr/internal/PlatformEventType;
invokevirtual jdk.jfr.internal.PlatformEventType.isLargeSize:()Z
putfield jdk.jfr.internal.EventWriter.largeSize:Z
1: aload 0
getfield jdk.jfr.internal.EventWriter.largeSize:Z
ifeq 5
2: aload 0
iconst_4
invokevirtual jdk.jfr.internal.EventWriter.isValidForSize:(I)Z
ifeq 7
3: aload 0
dup
getfield jdk.jfr.internal.EventWriter.currentPosition:J
ldc 4
ladd
putfield jdk.jfr.internal.EventWriter.currentPosition:J
4: goto 7
5: StackMap locals:
StackMap stack:
aload 0
iconst_1
invokevirtual jdk.jfr.internal.EventWriter.isValidForSize:(I)Z
ifeq 7
6: aload 0
dup
getfield jdk.jfr.internal.EventWriter.currentPosition:J
lconst_1
ladd
putfield jdk.jfr.internal.EventWriter.currentPosition:J
7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/jfr/internal/EventWriter;
private void reset();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield jdk.jfr.internal.EventWriter.startPosition:J
putfield jdk.jfr.internal.EventWriter.currentPosition:J
1: aload 0
getfield jdk.jfr.internal.EventWriter.flushOnEnd:Z
ifeq 3
2: aload 0
aload 0
invokevirtual jdk.jfr.internal.EventWriter.flush:()Z
putfield jdk.jfr.internal.EventWriter.flushOnEnd:Z
3: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield jdk.jfr.internal.EventWriter.valid:Z
4: aload 0
iconst_0
putfield jdk.jfr.internal.EventWriter.started:Z
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/jfr/internal/EventWriter;
private boolean isValidForSize(int);
descriptor: (I)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.jfr.internal.EventWriter.valid:Z
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jfr.internal.EventWriter.currentPosition:J
iload 1
i2l
ladd
aload 0
getfield jdk.jfr.internal.EventWriter.maxPosition:J
lcmp
ifle 6
3: aload 0
aload 0
aload 0
invokevirtual jdk.jfr.internal.EventWriter.usedSize:()I
iload 1
invokevirtual jdk.jfr.internal.EventWriter.flush:(II)Z
putfield jdk.jfr.internal.EventWriter.flushOnEnd:Z
4: aload 0
getfield jdk.jfr.internal.EventWriter.valid:Z
ifne 6
5: iconst_0
ireturn
6: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/jfr/internal/EventWriter;
0 7 1 requestedSize I
MethodParameters:
Name Flags
requestedSize
private boolean isNotified();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jfr.internal.EventWriter.notified:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/internal/EventWriter;
private void resetNotified();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield jdk.jfr.internal.EventWriter.notified:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jfr/internal/EventWriter;
private int usedSize();
descriptor: ()I
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jfr.internal.EventWriter.currentPosition:J
aload 0
getfield jdk.jfr.internal.EventWriter.startPosition:J
lsub
l2i
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/internal/EventWriter;
private boolean flush();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aload 0
invokevirtual jdk.jfr.internal.EventWriter.usedSize:()I
iconst_0
invokevirtual jdk.jfr.internal.EventWriter.flush:(II)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/internal/EventWriter;
private boolean flush(int, int);
descriptor: (II)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
iload 2
invokestatic jdk.jfr.internal.JVM.flush:(Ljdk/jfr/internal/EventWriter;II)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/internal/EventWriter;
0 1 1 usedSize I
0 1 2 requestedSize I
MethodParameters:
Name Flags
usedSize
requestedSize
public boolean beginEvent(jdk.jfr.internal.PlatformEventType);
descriptor: (Ljdk/jfr/internal/PlatformEventType;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.jfr.internal.EventWriter.started:Z
ifeq 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield jdk.jfr.internal.EventWriter.started:Z
3: aload 0
aload 1
putfield jdk.jfr.internal.EventWriter.eventType:Ljdk/jfr/internal/PlatformEventType;
4: aload 0
invokevirtual jdk.jfr.internal.EventWriter.reserveEventSizeField:()V
5: aload 0
aload 1
invokevirtual jdk.jfr.internal.PlatformEventType.getId:()J
invokevirtual jdk.jfr.internal.EventWriter.putLong:(J)V
6: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/jfr/internal/EventWriter;
0 7 1 eventType Ljdk/jfr/internal/PlatformEventType;
MethodParameters:
Name Flags
eventType
public boolean endEvent();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.jfr.internal.EventWriter.valid:Z
ifne 3
1: aload 0
invokevirtual jdk.jfr.internal.EventWriter.reset:()V
2: iconst_1
ireturn
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.jfr.internal.EventWriter.usedSize:()I
istore 1
start local 1 4: iload 1
i2l
ldc 268435455
lcmp
ifle 7
5: aload 0
invokevirtual jdk.jfr.internal.EventWriter.reset:()V
6: iconst_1
ireturn
7: StackMap locals: int
StackMap stack:
aload 0
getfield jdk.jfr.internal.EventWriter.largeSize:Z
ifeq 10
8: aload 0
getfield jdk.jfr.internal.EventWriter.startPosition:J
iload 1
invokestatic jdk.jfr.internal.EventWriter.makePaddedInt:(I)I
invokestatic jdk.jfr.internal.Bits.putInt:(JI)I
pop
9: goto 16
10: StackMap locals:
StackMap stack:
iload 1
sipush 128
if_icmpge 13
11: aload 0
getfield jdk.jfr.internal.EventWriter.startPosition:J
iload 1
i2b
invokestatic jdk.jfr.internal.Bits.putByte:(JB)I
pop
12: goto 16
13: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jfr.internal.EventWriter.eventType:Ljdk/jfr/internal/PlatformEventType;
invokevirtual jdk.jfr.internal.PlatformEventType.setLargeSize:()V
14: aload 0
invokevirtual jdk.jfr.internal.EventWriter.reset:()V
15: iconst_0
ireturn
16: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.jfr.internal.EventWriter.isNotified:()Z
ifeq 20
17: aload 0
invokevirtual jdk.jfr.internal.EventWriter.resetNotified:()V
18: aload 0
invokevirtual jdk.jfr.internal.EventWriter.reset:()V
19: iconst_0
ireturn
20: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield jdk.jfr.internal.EventWriter.currentPosition:J
putfield jdk.jfr.internal.EventWriter.startPosition:J
21: getstatic jdk.jfr.internal.EventWriter.unsafe:Ljdk/internal/misc/Unsafe;
invokevirtual jdk.internal.misc.Unsafe.storeStoreFence:()V
22: getstatic jdk.jfr.internal.EventWriter.unsafe:Ljdk/internal/misc/Unsafe;
aload 0
getfield jdk.jfr.internal.EventWriter.startPositionAddress:J
aload 0
getfield jdk.jfr.internal.EventWriter.currentPosition:J
invokevirtual jdk.internal.misc.Unsafe.putAddress:(JJ)V
23: aload 0
getfield jdk.jfr.internal.EventWriter.flushOnEnd:Z
ifeq 25
24: aload 0
aload 0
invokevirtual jdk.jfr.internal.EventWriter.flush:()Z
putfield jdk.jfr.internal.EventWriter.flushOnEnd:Z
25: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield jdk.jfr.internal.EventWriter.started:Z
26: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Ljdk/jfr/internal/EventWriter;
4 27 1 eventSize I
private void <init>(long, long, long, long, boolean);
descriptor: (JJJJZ)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=10, args_size=6
start local 0 start local 1 start local 3 start local 5 start local 7 start local 9 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield jdk.jfr.internal.EventWriter.largeSize:Z
2: aload 0
aload 0
lload 1
dup2_x1
putfield jdk.jfr.internal.EventWriter.currentPosition:J
putfield jdk.jfr.internal.EventWriter.startPosition:J
3: aload 0
lload 3
putfield jdk.jfr.internal.EventWriter.maxPosition:J
4: aload 0
lload 5
putfield jdk.jfr.internal.EventWriter.startPositionAddress:J
5: aload 0
lload 7
putfield jdk.jfr.internal.EventWriter.threadID:J
6: aload 0
iconst_0
putfield jdk.jfr.internal.EventWriter.started:Z
7: aload 0
iconst_0
putfield jdk.jfr.internal.EventWriter.flushOnEnd:Z
8: aload 0
iload 9
putfield jdk.jfr.internal.EventWriter.valid:Z
9: aload 0
iconst_0
putfield jdk.jfr.internal.EventWriter.notified:Z
10: return
end local 9 end local 7 end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/jfr/internal/EventWriter;
0 11 1 startPos J
0 11 3 maxPos J
0 11 5 startPosAddress J
0 11 7 threadID J
0 11 9 valid Z
MethodParameters:
Name Flags
startPos
maxPos
startPosAddress
threadID
valid
private static int makePaddedInt(int);
descriptor: (I)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=9, args_size=1
start local 0 0: iload 0
iconst_0
iushr
bipush 127
iand
sipush 128
ior
bipush 24
ishl
i2l
lstore 1
start local 1 1: iload 0
bipush 7
iushr
bipush 127
iand
sipush 128
ior
bipush 16
ishl
i2l
lstore 3
start local 3 2: iload 0
bipush 14
iushr
bipush 127
iand
sipush 128
ior
bipush 8
ishl
i2l
lstore 5
start local 5 3: iload 0
bipush 21
iushr
bipush 127
iand
iconst_0
ishl
i2l
lstore 7
start local 7 4: lload 1
lload 3
ladd
lload 5
ladd
lload 7
ladd
l2i
ireturn
end local 7 end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 v I
1 5 1 b1 J
2 5 3 b2 J
3 5 5 b3 J
4 5 7 b4 J
MethodParameters:
Name Flags
v
private void putUncheckedLong(long);
descriptor: (J)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: lload 1
ldc -128
land
lconst_0
lcmp
ifne 3
1: aload 0
lload 1
l2i
i2b
invokevirtual jdk.jfr.internal.EventWriter.putUncheckedByte:(B)V
2: return
3: StackMap locals:
StackMap stack:
aload 0
lload 1
ldc 128
lor
l2i
i2b
invokevirtual jdk.jfr.internal.EventWriter.putUncheckedByte:(B)V
4: lload 1
bipush 7
lushr
lstore 1
5: lload 1
ldc -128
land
lconst_0
lcmp
ifne 8
6: aload 0
lload 1
l2i
i2b
invokevirtual jdk.jfr.internal.EventWriter.putUncheckedByte:(B)V
7: return
8: StackMap locals:
StackMap stack:
aload 0
lload 1
ldc 128
lor
l2i
i2b
invokevirtual jdk.jfr.internal.EventWriter.putUncheckedByte:(B)V
9: lload 1
bipush 7
lushr
lstore 1
10: lload 1
ldc -128
land
lconst_0
lcmp
ifne 13
11: aload 0
lload 1
l2i
i2b
invokevirtual jdk.jfr.internal.EventWriter.putUncheckedByte:(B)V
12: return
13: StackMap locals:
StackMap stack:
aload 0
lload 1
ldc 128
lor
l2i
i2b
invokevirtual jdk.jfr.internal.EventWriter.putUncheckedByte:(B)V
14: lload 1
bipush 7
lushr
lstore 1
15: lload 1
ldc -128
land
lconst_0
lcmp
ifne 18
16: aload 0
lload 1
l2i
i2b
invokevirtual jdk.jfr.internal.EventWriter.putUncheckedByte:(B)V
17: return
18: StackMap locals:
StackMap stack:
aload 0
lload 1
ldc 128
lor
l2i
i2b
invokevirtual jdk.jfr.internal.EventWriter.putUncheckedByte:(B)V
19: lload 1
bipush 7
lushr
lstore 1
20: lload 1
ldc -128
land
lconst_0
lcmp
ifne 23
21: aload 0
lload 1
l2i
i2b
invokevirtual jdk.jfr.internal.EventWriter.putUncheckedByte:(B)V
22: return
23: StackMap locals:
StackMap stack:
aload 0
lload 1
ldc 128
lor
l2i
i2b
invokevirtual jdk.jfr.internal.EventWriter.putUncheckedByte:(B)V
24: lload 1
bipush 7
lushr
lstore 1
25: lload 1
ldc -128
land
lconst_0
lcmp
ifne 28
26: aload 0
lload 1
l2i
i2b
invokevirtual jdk.jfr.internal.EventWriter.putUncheckedByte:(B)V
27: return
28: StackMap locals:
StackMap stack:
aload 0
lload 1
ldc 128
lor
l2i
i2b
invokevirtual jdk.jfr.internal.EventWriter.putUncheckedByte:(B)V
29: lload 1
bipush 7
lushr
lstore 1
30: lload 1
ldc -128
land
lconst_0
lcmp
ifne 33
31: aload 0
lload 1
l2i
i2b
invokevirtual jdk.jfr.internal.EventWriter.putUncheckedByte:(B)V
32: return
33: StackMap locals:
StackMap stack:
aload 0
lload 1
ldc 128
lor
l2i
i2b
invokevirtual jdk.jfr.internal.EventWriter.putUncheckedByte:(B)V
34: lload 1
bipush 7
lushr
lstore 1
35: lload 1
ldc -128
land
lconst_0
lcmp
ifne 38
36: aload 0
lload 1
l2i
i2b
invokevirtual jdk.jfr.internal.EventWriter.putUncheckedByte:(B)V
37: return
38: StackMap locals:
StackMap stack:
aload 0
lload 1
ldc 128
lor
l2i
i2b
invokevirtual jdk.jfr.internal.EventWriter.putUncheckedByte:(B)V
39: aload 0
lload 1
bipush 7
lushr
l2i
i2b
invokevirtual jdk.jfr.internal.EventWriter.putUncheckedByte:(B)V
40: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 41 0 this Ljdk/jfr/internal/EventWriter;
0 41 1 v J
MethodParameters:
Name Flags
v
private void putUncheckedByte(byte);
descriptor: (B)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: getstatic jdk.jfr.internal.EventWriter.unsafe:Ljdk/internal/misc/Unsafe;
aload 0
getfield jdk.jfr.internal.EventWriter.currentPosition:J
iload 1
invokevirtual jdk.internal.misc.Unsafe.putByte:(JB)V
1: aload 0
dup
getfield jdk.jfr.internal.EventWriter.currentPosition:J
lconst_1
ladd
putfield jdk.jfr.internal.EventWriter.currentPosition:J
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jfr/internal/EventWriter;
0 3 1 i B
MethodParameters:
Name Flags
i
}
SourceFile: "EventWriter.java"
InnerClasses:
public final Encoding = jdk.jfr.internal.consumer.StringParser$Encoding of jdk.jfr.internal.consumer.StringParser