Module openj9.dtfj

Class JavaRuntime

    • Method Detail

      • getClassForID

        public JavaClass getClassForID​(long classID)
      • getClassLoaderForID

        public JavaClassLoader getClassLoaderForID​(long loaderID)
      • addMonitor

        public void addMonitor​(JavaMonitor monitor)
      • addHeap

        public void addHeap​(JavaHeap heap)
      • addHeapRoot

        public void addHeapRoot​(JavaReference heapRoot)
      • addThread

        public void addThread​(JavaThread thread,
                              long blockedOnMonitor,
                              long waitingOnMonitor)
        Adds a JavaThread to the runtime along with optional IDs of monitors that it is blocked on or waiting on
        Parameters:
        thread - The JavaThread to add to the runtime
        blockedOnMonitor - The ID of the monitor that this thread is blocked on (0 if it is not blocked)
        waitingOnMonitor - The ID of the monitor that this thread is waiting on (0 if it is not waiting)
      • setTraceBufferForName

        public void setTraceBufferForName​(TraceBuffer buffer,
                                          String key)
      • getSystemProperty

        public String getSystemProperty​(String key,
                                        String defaultValue)
      • setSystemProperty

        public void setSystemProperty​(String key,
                                      String value)
      • pointerInAddressSpace

        public ImagePointer pointerInAddressSpace​(long id)
        Since a JavaVM cannot span address spaces, use the VM's container address space to build this pointer, given the raw ID
        Parameters:
        id -
        Returns:
      • nativeThreadForID

        public ImageThread nativeThreadForID​(long nativeID)
      • methodForID

        public JavaMethod methodForID​(long method)
      • addMethodForID

        public void addMethodForID​(JavaMethod method,
                                   long id)
      • createJavaVMInitArgs

        public JavaVMInitArgs createJavaVMInitArgs​(int version,
                                                   boolean ignoreUnrecognized)
      • bytesPerPointer

        public int bytesPerPointer()
        A helper method required by some of the structures hanging off of the VM. Returns the number of bytes required to express a native pointer on the VM target platform
        Returns:
        4 or 8, depending on the pointer size of the target platform
      • getClasses

        protected Iterator getClasses()
      • addSpecialObject

        public void addSpecialObject​(JavaObject obj)