javax.realtime
Class ImmortalMemory
java.lang.Object
javax.realtime.MemoryArea
javax.realtime.ImmortalMemory
- public final 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 immortal memory are
never subject 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, immortal objects
continue to exist even after there are no other references to them.
- Author:
- Angelo Corsaro, Morgan Deters
Methods inherited from class javax.realtime.MemoryArea |
enter, enter, executeInArea, finalize, getMemoryArea, guardedRun, memoryConsumed, memoryRemaining, newArray, newInstance, newInstance, size |
instance
public static ImmortalMemory instance()
- Returns a reference to the singleton ImmortalMemory space.
- Returns:
- The singleton ImmortalMemory object.
jRate is developed and maintained by the jRate project development team.
Copyright (c) 2001-2006 Angelo Corsaro and Morgan Deters.