6.内存分配ByteBuf
Java · 5 notes
- Netty ByteBufhistorical
Reader/writer indexes, heap/direct buffers, slicing, reference counting, and ownership rules.
- Netty ByteBufAllocatorhistorical
Allocator abstraction for heap/direct, pooled/unpooled buffers and why allocation strategy is configurable.
- Using Netty ByteBuf Allocation Safelyhistorical
Allocator usage, capacity, slicing, copying, reference-count handling, and leak-safe buffer ownership.
- Netty PooledByteBufAllocatorhistorical
Pooled ByteBuf allocation, arenas/chunks/suballocation concepts, reuse benefits, and version-sensitive allocator internals.
- Netty PoolThreadCachehistorical
Per-thread pooled buffer caching as an allocation optimization, with retention and event-loop affinity trade-offs.