1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package io.netty.buffer;
17
18 import jdk.jfr.Description;
19 import jdk.jfr.Label;
20 import jdk.jfr.Name;
21
22 @SuppressWarnings("Since15")
23 @Label("Chunk Free")
24 @Name(FreeChunkEvent.NAME)
25 @Description("Triggered when a memory chunk is freed from an allocator")
26 final class FreeChunkEvent extends AbstractChunkEvent {
27 static final String NAME = "io.netty.FreeChunk";
28 private static final FreeChunkEvent INSTANCE = new FreeChunkEvent();
29
30
31
32
33 public static boolean isEventEnabled() {
34 return INSTANCE.isEnabled();
35 }
36
37 @Description("Was this chunk pooled, or was it a one-off allocation for a single buffer?")
38 public boolean pooled;
39 }