com.sun.btrace
Class BTraceUtils.Speculation

java.lang.Object
  extended by com.sun.btrace.BTraceUtils.Speculation
Enclosing class:
BTraceUtils

public static class BTraceUtils.Speculation
extends java.lang.Object


Constructor Summary
BTraceUtils.Speculation()
           
 
Method Summary
static void commit(int id)
          Commits the speculative buffer associated with id.
static void discard(int id)
          Discards the speculative buffer associated with id.
static void speculate(int id)
          Sets current speculative buffer id.
static int speculation()
          Returns an identifier for a new speculative buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BTraceUtils.Speculation

public BTraceUtils.Speculation()
Method Detail

speculation

public static int speculation()
Returns an identifier for a new speculative buffer.

Returns:
new speculative buffer id

speculate

public static void speculate(int id)
Sets current speculative buffer id.

Parameters:
id - the speculative buffer id

commit

public static void commit(int id)
Commits the speculative buffer associated with id.

Parameters:
id - the speculative buffer id

discard

public static void discard(int id)
Discards the speculative buffer associated with id.

Parameters:
id - the speculative buffer id