threadLocalTempArray() — netty Function Reference
Architecture documentation for the threadLocalTempArray() function in ByteBufUtil.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 5aa64bba_7190_3430_6812_affa2bbfb849["threadLocalTempArray()"] 920454f6_25f6_4a9b_3d32_9684c3e11f6c["ByteBufUtil"] 5aa64bba_7190_3430_6812_affa2bbfb849 -->|defined in| 920454f6_25f6_4a9b_3d32_9684c3e11f6c 96cdf8e2_4e5f_72af_07c1_cc29b6248734["String()"] 96cdf8e2_4e5f_72af_07c1_cc29b6248734 -->|calls| 5aa64bba_7190_3430_6812_affa2bbfb849 d4698b7c_2291_aecb_8583_ae5e525a1a22["readBytes()"] d4698b7c_2291_aecb_8583_ae5e525a1a22 -->|calls| 5aa64bba_7190_3430_6812_affa2bbfb849 style 5aa64bba_7190_3430_6812_affa2bbfb849 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/ByteBufUtil.java lines 111–119
static byte[] threadLocalTempArray(int minLength) {
// Only make use of ThreadLocal if we use a FastThreadLocalThread to make the implementation
// Virtual Thread friendly.
// See https://github.com/netty/netty/issues/14609
if (minLength <= MAX_TL_ARRAY_LEN && FastThreadLocalThread.currentThreadHasFastThreadLocal()) {
return BYTE_ARRAYS.get();
}
return PlatformDependent.allocateUninitializedArray(minLength);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does threadLocalTempArray() do?
threadLocalTempArray() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/ByteBufUtil.java.
Where is threadLocalTempArray() defined?
threadLocalTempArray() is defined in buffer/src/main/java/io/netty/buffer/ByteBufUtil.java at line 111.
What calls threadLocalTempArray()?
threadLocalTempArray() is called by 2 function(s): String, readBytes.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free