| java.lang.Object org.apache.derbyTesting.functionTests.harness.jvm
All known Subclasses: org.apache.derbyTesting.functionTests.harness.jdk15, org.apache.derbyTesting.functionTests.harness.j9_22, org.apache.derbyTesting.functionTests.harness.ibm15, org.apache.derbyTesting.functionTests.harness.currentjvm, org.apache.derbyTesting.functionTests.harness.jdk13, org.apache.derbyTesting.functionTests.harness.j9_13, org.apache.derbyTesting.functionTests.harness.jdk16, org.apache.derbyTesting.functionTests.harness.jdk14, org.apache.derbyTesting.functionTests.harness.j9_foundation, org.apache.derbyTesting.functionTests.harness.ibm14, org.apache.derbyTesting.functionTests.harness.ibm13,
jvm | abstract public class jvm (Code) | | This class provides the interface and mechanism
for plugging VMs into the system. Typically
you only need to add a new implementation if your
supported attributes or command line building are
different from those that exist.
this class has fields for all options that a JDK VM can take,
that is the reference point for all others. Note some VMs (like jview)
don't take all options and will ignore them (like -mx). Defining
the system property "verbose" to 1 will give you warnings for ignored
properties in a properly implemented subclass.
here is the canonical output from java -help for options we take:
-noasyncgc don't allow asynchronous garbage collection
-verbosegc print a message when garbage collection occurs
-noclassgc disable class garbage collection
-ss set the maximum native stack size for any thread
-oss set the maximum Java stack size for any thread
-ms set the initial Java heap size
-mx set the maximum Java heap size
-classpath
list directories in which to look for classes
-prof[:] output profiling data to .\java.prof or .\
-verify verify all classes when read in
-noverify do not verify any class
-nojit turn off the jit
-Dprop=name define property; can be specified more than once
author: ames |
Constructor Summary | |
public | jvm() | public | jvm(boolean noasyncgc, boolean verbosegc, boolean noclassgc, long ss, long oss, long ms, long mx, String classpath, String prof, boolean verify, boolean noverify, boolean nojit, Vector D) | public | jvm(String classpath, Vector D) | public | jvm(long ms, long mx, String classpath, Vector D) |
noasyncgc | public boolean noasyncgc(Code) | | |
noclassgc | public boolean noclassgc(Code) | | |
nojit | public boolean nojit(Code) | | |
noverify | public boolean noverify(Code) | | |
verbosegc | public boolean verbosegc(Code) | | |
verboselevel | int verboselevel(Code) | | |
verify | public boolean verify(Code) | | |
jvm | public jvm(boolean noasyncgc, boolean verbosegc, boolean noclassgc, long ss, long oss, long ms, long mx, String classpath, String prof, boolean verify, boolean noverify, boolean nojit, Vector D)(Code) | | |
findCodeBase | public static String findCodeBase(boolean[] isJar)(Code) | | |
getCurrentJvm | public static jvm getCurrentJvm() throws Exception(Code) | | Get the current JVM using the normal test harness rules for finding
a JVM.
- If the sytem property 'jvm' use this name.
- else if the java version starts with 1.2 use
"jdk12".
- else use "currentjvm".
|
getDintro | abstract public String getDintro()(Code) | | return the property definition introducer, with a space if a
separator is needed.
|
getMajorVersion | public int getMajorVersion()(Code) | | Return the major version number
|
getMinorVersion | public int getMinorVersion()(Code) | | Return the major version number
|
guessWSHome | protected static String guessWSHome()(Code) | | Find $WS based on the assumption that JAVA_HOME is $WS/
or $WS//jre
path of $WS |
setClasspath | public void setClasspath(String classpath)(Code) | | |
setMs | public void setMs(long ms)(Code) | | |
setMx | public void setMx(long mx)(Code) | | |
setNoasyncgc | public void setNoasyncgc(boolean noasyncgc)(Code) | | |
setNoclassgc | public void setNoclassgc(boolean noclassgc)(Code) | | |
setNojit | public void setNojit(boolean nojit)(Code) | | |
setNoverify | public void setNoverify(boolean noverify)(Code) | | |
setOss | public void setOss(long oss)(Code) | | |
setSs | public void setSs(long ss)(Code) | | |
setVerbosegc | public void setVerbosegc(boolean verbosegc)(Code) | | |
setVerify | public void setVerify(boolean verify)(Code) | | |
setVersion | public void setVersion() throws Exception(Code) | | Get the current JVM using the normal test harness rules for finding
a JVM.
|
|
|