Home / Function/ copyMemory() — netty Function Reference

copyMemory() — netty Function Reference

Architecture documentation for the copyMemory() function in PlatformDependent0.java from the netty codebase.

Function java CommonUtil Internal calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  ad096ea9_a254_28f2_8d29_b123fbc23691["copyMemory()"]
  be4c38f2_d236_e498_c295_1033d2617879["PlatformDependent0"]
  ad096ea9_a254_28f2_8d29_b123fbc23691 -->|defined in| be4c38f2_d236_e498_c295_1033d2617879
  8d091f6b_ee3d_4468_a99b_989356fcd91a["copyMemoryWithSafePointPolling()"]
  8d091f6b_ee3d_4468_a99b_989356fcd91a -->|calls| ad096ea9_a254_28f2_8d29_b123fbc23691
  c2ccf8eb_f7e5_96d2_34ff_36fd7d8bd5d2["javaVersion()"]
  ad096ea9_a254_28f2_8d29_b123fbc23691 -->|calls| c2ccf8eb_f7e5_96d2_34ff_36fd7d8bd5d2
  8d091f6b_ee3d_4468_a99b_989356fcd91a["copyMemoryWithSafePointPolling()"]
  ad096ea9_a254_28f2_8d29_b123fbc23691 -->|calls| 8d091f6b_ee3d_4468_a99b_989356fcd91a
  style ad096ea9_a254_28f2_8d29_b123fbc23691 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/internal/PlatformDependent0.java lines 893–901

    static void copyMemory(long srcAddr, long dstAddr, long length) {
        // Manual safe-point polling is only needed prior Java9:
        // See https://bugs.openjdk.java.net/browse/JDK-8149596
        if (javaVersion() <= 8) {
            copyMemoryWithSafePointPolling(srcAddr, dstAddr, length);
        } else {
            UNSAFE.copyMemory(srcAddr, dstAddr, length);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does copyMemory() do?
copyMemory() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/internal/PlatformDependent0.java.
Where is copyMemory() defined?
copyMemory() is defined in common/src/main/java/io/netty/util/internal/PlatformDependent0.java at line 893.
What does copyMemory() call?
copyMemory() calls 2 function(s): copyMemoryWithSafePointPolling, javaVersion.
What calls copyMemory()?
copyMemory() is called by 1 function(s): copyMemoryWithSafePointPolling.

Analyze Your Own Codebase

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

Try Supermodel Free