incrementMemoryCounter() — netty Function Reference
Architecture documentation for the incrementMemoryCounter() function in PlatformDependent.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 70697834_5c96_d577_9eb7_bb5814bc2d55["incrementMemoryCounter()"] 2e66d079_807f_6785_864f_73ab09fbc515["PlatformDependent"] 70697834_5c96_d577_9eb7_bb5814bc2d55 -->|defined in| 2e66d079_807f_6785_864f_73ab09fbc515 a1d689bd_4558_1e21_9c75_ae1e74a93859["ByteBuffer()"] a1d689bd_4558_1e21_9c75_ae1e74a93859 -->|calls| 70697834_5c96_d577_9eb7_bb5814bc2d55 style 70697834_5c96_d577_9eb7_bb5814bc2d55 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/internal/PlatformDependent.java lines 1088–1098
private static void incrementMemoryCounter(int capacity) {
if (DIRECT_MEMORY_COUNTER != null) {
long newUsedMemory = DIRECT_MEMORY_COUNTER.addAndGet(capacity);
if (newUsedMemory > DIRECT_MEMORY_LIMIT) {
DIRECT_MEMORY_COUNTER.addAndGet(-capacity);
throw new OutOfDirectMemoryError("failed to allocate " + capacity
+ " byte(s) of direct memory (used: " + (newUsedMemory - capacity)
+ ", max: " + DIRECT_MEMORY_LIMIT + ')');
}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does incrementMemoryCounter() do?
incrementMemoryCounter() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/internal/PlatformDependent.java.
Where is incrementMemoryCounter() defined?
incrementMemoryCounter() is defined in common/src/main/java/io/netty/util/internal/PlatformDependent.java at line 1088.
What calls incrementMemoryCounter()?
incrementMemoryCounter() is called by 1 function(s): ByteBuffer.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free