Home / Function/ UpdaterType() — netty Function Reference

UpdaterType() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  2bb9bd13_5087_09b4_de65_38bf9c8b3999["UpdaterType()"]
  f036d2ef_3ffa_eba6_5ed8_a93c1a7f1682["ReferenceCountUpdater"]
  2bb9bd13_5087_09b4_de65_38bf9c8b3999 -->|defined in| f036d2ef_3ffa_eba6_5ed8_a93c1a7f1682
  2f100692_e453_dae2_bb8a_c72ccfac5088["getUnsafeOffset()"]
  2bb9bd13_5087_09b4_de65_38bf9c8b3999 -->|calls| 2f100692_e453_dae2_bb8a_c72ccfac5088
  style 2bb9bd13_5087_09b4_de65_38bf9c8b3999 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/internal/ReferenceCountUpdater.java lines 147–156

    public static <T extends ReferenceCounted> UpdaterType updaterTypeOf(Class<T> clz, String fieldName) {
        long fieldOffset = getUnsafeOffset(clz, fieldName);
        if (fieldOffset >= 0) {
            return UpdaterType.Unsafe;
        }
        if (PlatformDependent.hasVarHandle()) {
            return UpdaterType.VarHandle;
        }
        return UpdaterType.Atomic;
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free