spec.benchmarks.compiler
Class MainBase

java.lang.Object
  extended by java.lang.Thread
      extended by spec.harness.BenchmarkThread
          extended by spec.harness.SpecJVMBenchmarkBase
              extended by spec.benchmarks.compiler.MainBase
All Implemented Interfaces:
java.lang.Runnable, SpecJVMBenchmark
Direct Known Subclasses:
Main, Main

public class MainBase
extends SpecJVMBenchmarkBase


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  Compiler compiler
           
protected  int loops
           
protected static java.io.File resDir
           
protected static java.io.File srcsFile
           
protected static java.io.File tmpDir
           
 
Fields inherited from class spec.harness.BenchmarkThread
createValidityCheckFiles
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Fields inherited from interface spec.harness.SpecJVMBenchmark
FUNCTIONAL, INVALID, MULTI, SINGLE, STRESS
 
Constructor Summary
MainBase(BenchmarkResult bmResult, int threadId, int compiles)
           
 
Method Summary
 void harnessMain()
          Starts the benchmark.
 void harnessMain(boolean skipVerify)
           
static void preSetupBenchmark(java.lang.Class cl)
           
static void tearDownBenchmark()
           
static java.lang.String testType()
           
 
Methods inherited from class spec.harness.SpecJVMBenchmarkBase
runSimple, setupBenchmark, setupIteration, tearDownIteration
 
Methods inherited from class spec.harness.BenchmarkThread
executeIteration, getArgs, getThreadId, run, runLoop, setInvalidStartupResult, setItResult, setPrintProgress
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

resDir

protected static java.io.File resDir

tmpDir

protected static java.io.File tmpDir

srcsFile

protected static java.io.File srcsFile

compiler

protected Compiler compiler

loops

protected int loops
Constructor Detail

MainBase

public MainBase(BenchmarkResult bmResult,
                int threadId,
                int compiles)
Method Detail

testType

public static java.lang.String testType()

preSetupBenchmark

public static void preSetupBenchmark(java.lang.Class cl)

tearDownBenchmark

public static void tearDownBenchmark()

harnessMain

public void harnessMain()
Description copied from class: BenchmarkThread
Starts the benchmark. Each benchmark implements this method. Given a class name, the ProgramRunner class dynamically creates the instance of the benchmark class and calls this method.

Specified by:
harnessMain in class BenchmarkThread
See Also:
ProgramRunner, BenchmarkThread

harnessMain

public void harnessMain(boolean skipVerify)