public class IndirectTest
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
private class |
IndirectTest.SubTest
Defines the indirect/overlapping resource usage.
|
| Modifier and Type | Field and Description |
|---|---|
private test.threadedTest.Data |
data
Stores the data.
|
private static long |
dataSize
Stores the size of a data object.
|
private static IndirectTest |
indirectTest
Stores the allocated test object.
|
private static int |
MAX_ALLOC
Defines the maximum allocation count.
|
private static IndirectTest.SubTest |
subTest
Stores the allocated sub test object.
|
| Modifier | Constructor and Description |
|---|---|
private |
IndirectTest()
Prevents this class from being instantiated from outside.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
allocateIndirect(IndirectTest.SubTest test)
Allocates a sub object indirectly in order to cause this element to
occur twice on the internal stack.
|
static void |
asserts()
The automated tests using assert statements.
|
void |
execute()
Executes resource allocation.
|
static void |
main(java.lang.String[] args)
Starts the test.
|
private static void |
test()
Executes the tests - main is not time-instrumented.
|
private static final int MAX_ALLOC
private static long dataSize
private static IndirectTest indirectTest
private static IndirectTest.SubTest subTest
private test.threadedTest.Data data
private IndirectTest()
private void allocateIndirect(IndirectTest.SubTest test)
test - the object to call the allocation method forpublic void execute()
private static void test()
public static void main(java.lang.String[] args)
args - ignoredpublic static void asserts()
EndSystem
annotation.