javax.realtime
Class ImmortalMemory

java.lang.Object
  |
  +--javax.realtime.MemoryArea
        |
        +--javax.realtime.ImmortalMemory
Direct Known Subclasses:
RefCountArea

public class ImmortalMemory
extends MemoryArea

ImmortalMemory is a memory resource that is shared among all threads. Objects allocated in the immortal memory live until the end of the application. Objects in immoral memory are nver subjected to garbage collection, although some GC algorithms may require a scan of the immortal memory. An immortal object may only contain reference to other immortal objects or to heap objects. Unlike standard Java heap objects, immoratl objects continue to exist even after there are no other references to them.


Field Summary
private static javax.realtime.ImmortalMemory immortalMemory
           
 
Fields inherited from class javax.realtime.MemoryArea
constant, heap, id, logic, memoryConsumed, nullClassArr, nullMem, nullObjArr, scoped, shadow, size
 
Constructor Summary
ImmortalMemory()
           
 
Method Summary
protected  void initNative(long sizeInBytes)
           
static javax.realtime.ImmortalMemory instance()
          Returns a pointer to the singleton ImmortalMemory space.
 java.lang.String toString()
          Output a helpful string describing this MemoryArea.
 
Methods inherited from class javax.realtime.MemoryArea
bless, checkAccess, checkNewInstance, enter, enter, enterMemBlock, executeInArea, exitMemBlock, getMemoryArea, getOuterScope, memoryConsumed, memoryRemaining, newArray, newArray, newArray, newArray, newInstance, newInstance, newInstance, newInstance, postSetup, preSetup, registerFinal, shadow, size, startMem, stopMem, throwIllegalAssignmentError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

immortalMemory

private static javax.realtime.ImmortalMemory immortalMemory
Constructor Detail

ImmortalMemory

public ImmortalMemory()
Method Detail

instance

public static javax.realtime.ImmortalMemory instance()
Returns a pointer to the singleton ImmortalMemory space.

Returns:
The singleton ImmortalMemory object.

initNative

protected void initNative(long sizeInBytes)
Specified by:
initNative in class MemoryArea

toString

public java.lang.String toString()
Description copied from class: MemoryArea
Output a helpful string describing this MemoryArea.

Overrides:
toString in class MemoryArea