Home / Function/ isLiveNonVolatile() — netty Function Reference

isLiveNonVolatile() — netty Function Reference

Architecture documentation for the isLiveNonVolatile() function in ReferenceCountUpdater.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  2e08504e_a149_fdb1_1939_b82064c20df2["isLiveNonVolatile()"]
  f036d2ef_3ffa_eba6_5ed8_a93c1a7f1682["ReferenceCountUpdater"]
  2e08504e_a149_fdb1_1939_b82064c20df2 -->|defined in| f036d2ef_3ffa_eba6_5ed8_a93c1a7f1682
  59a2cd6a_9318_b154_f406_342a54f60b55["getRawRefCnt()"]
  2e08504e_a149_fdb1_1939_b82064c20df2 -->|calls| 59a2cd6a_9318_b154_f406_342a54f60b55
  style 2e08504e_a149_fdb1_1939_b82064c20df2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/internal/ReferenceCountUpdater.java lines 69–75

    public final boolean isLiveNonVolatile(T instance) {
        final int rawCnt = getRawRefCnt(instance);
        if (rawCnt == 2) {
            return true;
        }
        return (rawCnt & 1) == 0;
    }

Domain

Subdomains

Frequently Asked Questions

What does isLiveNonVolatile() do?
isLiveNonVolatile() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/internal/ReferenceCountUpdater.java.
Where is isLiveNonVolatile() defined?
isLiveNonVolatile() is defined in common/src/main/java/io/netty/util/internal/ReferenceCountUpdater.java at line 69.
What does isLiveNonVolatile() call?
isLiveNonVolatile() calls 1 function(s): getRawRefCnt.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free