Class LimitsStaticallyReferencedJniMethods

java.lang.Object
io.netty.channel.unix.LimitsStaticallyReferencedJniMethods

final class LimitsStaticallyReferencedJniMethods extends java.lang.Object
This class is necessary to break the following cyclic dependency:
  1. JNI_OnLoad
  2. JNI Calls FindClass because RegisterNatives (used to register JNI methods) requires a class
  3. FindClass loads the class, but static members variables of that class attempt to call a JNI method which has not yet been registered.
  4. java.lang.UnsatisfiedLinkError is thrown because native method has not yet been registered.
Static members which call JNI methods must not be declared in this class!
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) static int
     
    (package private) static int
     
    (package private) static long
     
    (package private) static int
     
    (package private) static int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LimitsStaticallyReferencedJniMethods

      private LimitsStaticallyReferencedJniMethods()
  • Method Details

    • ssizeMax

      static long ssizeMax()
    • iovMax

      static int iovMax()
    • uioMaxIov

      static int uioMaxIov()
    • sizeOfjlong

      static int sizeOfjlong()
    • udsSunPathSize

      static int udsSunPathSize()