Class ModuleUtils

java.lang.Object
org.openjdk.jmc.agent.util.ModuleUtils

public class ModuleUtils extends Object
Utility for dealing with module system specifics.
  • Constructor Details

    • ModuleUtils

      public ModuleUtils()
  • Method Details

    • openUnsafePackage

      public static void openUnsafePackage(Instrumentation instrumentation)
      Allows the agent's module to access the Unsafe class when running on JDK 11 or newer.
    • getRedefineModuleMethod

      private static Method getRedefineModuleMethod()