public class IndirectTestFile
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
private class |
IndirectTestFile.SubTest
Defines the indirect/overlapping resource usage.
|
| Modifier and Type | Field and Description |
|---|---|
private static long |
fileRead
Stores the number of bytes read.
|
private static long |
fileWrite
Stores the number of bytes written.
|
| Modifier | Constructor and Description |
|---|---|
private |
IndirectTestFile()
Prevents this class from being instantiated from outside.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
allocateIndirect(IndirectTestFile.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 long fileRead
private static long fileWrite
private IndirectTestFile()
private void allocateIndirect(IndirectTestFile.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.