|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MultiverseConstants
An interface containing global constants. It is a final instead of something mutable so that the JIT can completely remove code if some condition has not been met. The advantage is that you don't have to pay to price for adding some kind of check, if it isn't used. The problem is that the scope is all classes loaded by some classloader, share the same configuration. So one STM implementation with sanity checks enabled and the other not, is not possible.
It is an interface so that is can be 'implemented' for easier access.
| Field Summary | |
|---|---|
static int |
LOCKMODE_EXCLUSIVE
|
static int |
LOCKMODE_NONE
|
static int |
LOCKMODE_READ
|
static int |
LOCKMODE_WRITE
|
static boolean |
SHAKE_BUGS
Indicates of the bugshaker is enabled (for more information see the Bugshaker. |
static int |
SPIN_YIELD
Indicates how often the system should yield when it is spinning. |
static boolean |
TRACING_ENABLED
Indicates if tracing (so seeing what is going on inside transactions) is enabled. |
| Field Detail |
|---|
static final boolean SHAKE_BUGS
Bugshaker. If disabled, no overhead because it
can be removed by the JIT.
static final boolean TRACING_ENABLED
static final int SPIN_YIELD
static final int LOCKMODE_NONE
static final int LOCKMODE_READ
static final int LOCKMODE_WRITE
static final int LOCKMODE_EXCLUSIVE
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||