Home / Class/ PlatformDependentSubstitution Class — netty Architecture

PlatformDependentSubstitution Class — netty Architecture

Architecture documentation for the PlatformDependentSubstitution class in PlatformDependentSubstitution.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  6d53fcca_220c_710d_ccdd_c60c4c2b1719["PlatformDependentSubstitution"]
  690a65b7_d6dc_4ba0_37a0_005f3f7b8ddd["PlatformDependentSubstitution.java"]
  6d53fcca_220c_710d_ccdd_c60c4c2b1719 -->|defined in| 690a65b7_d6dc_4ba0_37a0_005f3f7b8ddd
  2417ae26_49f0_f9c7_6a4c_1110e289f1fc["PlatformDependentSubstitution()"]
  6d53fcca_220c_710d_ccdd_c60c4c2b1719 -->|method| 2417ae26_49f0_f9c7_6a4c_1110e289f1fc

Relationship Graph

Source Code

common/src/main/java/io/netty/util/internal/svm/PlatformDependentSubstitution.java lines 22–39

@TargetClass(className = "io.netty.util.internal.PlatformDependent")
final class PlatformDependentSubstitution {
    private PlatformDependentSubstitution() {
    }

    /**
     * The class PlatformDependent caches the byte array base offset by reading the
     * field from PlatformDependent0. The automatic recomputation of Substrate VM
     * correctly recomputes the field in PlatformDependent0, but since the caching
     * in PlatformDependent happens during image building, the non-recomputed value
     * is cached.
     */
    @Alias
    @RecomputeFieldValue(
        kind = RecomputeFieldValue.Kind.ArrayBaseOffset,
        declClass = byte[].class)
    private static long BYTE_ARRAY_BASE_OFFSET;
}

Frequently Asked Questions

What is the PlatformDependentSubstitution class?
PlatformDependentSubstitution is a class in the netty codebase, defined in common/src/main/java/io/netty/util/internal/svm/PlatformDependentSubstitution.java.
Where is PlatformDependentSubstitution defined?
PlatformDependentSubstitution is defined in common/src/main/java/io/netty/util/internal/svm/PlatformDependentSubstitution.java at line 22.

Analyze Your Own Codebase

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

Try Supermodel Free