public interface JavaRuntime extends ManagedRuntime
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares the argument to the receiver, and answers true
if they represent the same object using a class
specific comparison.
|
java.util.Iterator |
getCompiledMethods()
This is short cut method.
|
java.util.Iterator |
getHeapRoots()
Get the set of object and class roots known to the VM.
|
java.util.Iterator |
getHeaps()
Get the set of heaps known by the VM
|
java.util.Iterator |
getJavaClassLoaders()
Get the set of class loaders active in this VM
|
ImagePointer |
getJavaVM()
Get the object that represents the virtual machine
|
JavaVMInitArgs |
getJavaVMInitArgs()
Fetch the JavaVMInitArgs which were used to create this VM.
|
java.util.Properties |
getJITProperties()
Get any vendor specific properties in use by the JIT for this Java runtime
|
java.util.Iterator |
getMemoryCategories()
Returns iterator of the top-level memory categories used by this
Java runtime.
|
java.util.Iterator |
getMemorySections(boolean includeFreed)
Returns an iterator of JavaRuntimeMemorySection objects corresponding to the blocks of memory allocated by the JavaRuntime.
|
java.util.Iterator |
getMonitors()
Provides access to the collection of monitors used in the JavaVM.
|
JavaObject |
getObjectAtAddress(ImagePointer address)
Gets the object located at address
address in the heap. |
long |
getStartTime()
Get the time when the JVM was started.
|
long |
getStartTimeNanos()
Get the value of the JVM's high-resolution timer when the JVM was started.
|
default java.lang.String |
getSystemProperty(java.lang.String key)
Get a system property of the virtual machine.
|
java.util.Iterator |
getThreads()
Get the set of Java threads known by the VM
|
java.lang.Object |
getTraceBuffer(java.lang.String bufferName,
boolean formatted)
Fetches implementation specific trace buffers, like the verbose GC buffer
or the Universal Trace Engine (UTE) buffer
|
int |
hashCode()
Answers an integer hash code for the receiver.
|
boolean |
isJITEnabled()
Determine if the JIT was enabled for this Java runtime.
|
getFullVersion, getVersionImagePointer getJavaVM() throws CorruptDataException
CorruptDataExceptiondefault java.lang.String getSystemProperty(java.lang.String key)
throws DataUnavailable,
CorruptDataException
key - the name of the property to retrieveDataUnavailable - if the system properties are not availableCorruptDataExceptionJavaVMInitArgs getJavaVMInitArgs() throws DataUnavailable, CorruptDataException
DataUnavailable - if the arguments are not availableCorruptDataExceptionjava.util.Iterator getJavaClassLoaders()
JavaClassLoader,
CorruptDatajava.util.Iterator getThreads()
JavaThread,
CorruptDatajava.util.Iterator getCompiledMethods()
JavaMethod,
CorruptDatajava.util.Iterator getMonitors()
JavaMonitor,
CorruptDatajava.util.Iterator getHeaps()
JavaHeap,
CorruptDatajava.util.Iterator getHeapRoots()
JavaReference,
JavaStackFrame,
CorruptDatajava.lang.Object getTraceBuffer(java.lang.String bufferName,
boolean formatted)
throws CorruptDataException
bufferName - a String naming the buffer to be fetchedformatted - true if formatting should be performed on the buffer, or
false if the raw buffer contents should be returnedCorruptDataExceptionJavaObject getObjectAtAddress(ImagePointer address) throws CorruptDataException, java.lang.IllegalArgumentException, MemoryAccessException, DataUnavailable
address in the heap.address - the ImagePointer instance representing the start address of object in the heap;JavaObject instance representing the located object.java.lang.IllegalArgumentException - if address is outside the heap's boundaries, or if it doesn't point to the start location of an object;MemoryAccessException - if address is in the heap but it's not accessible from the dump;CorruptDataException - if any data needed to build the returned instance of JavaObject is corrupt.DataUnavailable - if any data needed to build the returned instance of JavaObject is not available.JavaObjectjava.util.Iterator getMemoryCategories()
throws DataUnavailable
DataUnavailableCorruptDatajava.util.Iterator getMemorySections(boolean includeFreed)
throws DataUnavailable
includeFreed - If true, iterator will iterate over blocks of memory that have been freed, but haven't been re-used yet.DataUnavailableCorruptDataboolean equals(java.lang.Object obj)
java.lang.Objectequals in class java.lang.Objectobj - Object.hashCode()int hashCode()
java.lang.Objecttrue when passed to
.equals must answer the same value for this
method.hashCode in class java.lang.ObjectObject.equals(java.lang.Object)boolean isJITEnabled()
throws DataUnavailable,
CorruptDataException
DataUnavailable - if it is not possible to determine the JIT statusCorruptDataExceptionjava.util.Properties getJITProperties()
throws DataUnavailable,
CorruptDataException
DataUnavailable - if the JIT was not enabled for this runtimeCorruptDataExceptionlong getStartTime()
throws DataUnavailable,
CorruptDataException
DataUnavailable - if the JVM start time is not availableCorruptDataException - if the JVM start time is corruptedlong getStartTimeNanos()
throws DataUnavailable,
CorruptDataException
DataUnavailable - if the JVM start time is not availableCorruptDataException - if the JVM start time is corruptedEclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 2004, 2025 IBM Corp. and others.
DRAFT internal-b00