Package org.miaixz.bus.core.io
Class LifeCycle
java.lang.Object
org.miaixz.bus.core.io.LifeCycle
这是避免GC搅动和零填充所必需的 这个池是一个线程安全的静态单例
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic long该池中的总字节数static final long池的最大字节数 64 KiBstatic SectionBuffer段的单链表 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidrecycle(SectionBuffer segment) static SectionBuffertake()
-
Field Details
-
MAX_SIZE
public static final long MAX_SIZE池的最大字节数 64 KiB- See Also:
-
next
段的单链表 -
byteCount
public static long byteCount该池中的总字节数
-
-
Constructor Details
-
LifeCycle
public LifeCycle()
-
-
Method Details
-
take
-
recycle
-