javax.realtime
Class RefCountArea
java.lang.Object
|
+--javax.realtime.MemoryArea
|
+--javax.realtime.ImmortalMemory
|
+--javax.realtime.RefCountArea
- public class RefCountArea
- extends ImmortalMemory
RefCountArea
is a new MemoryArea
which
allows access from anywhere, access to ImmortalMemory
and the heap, where objects live as long as there are references
to them. Performance is upper-bounded by a constant for every assignment
and for every allocation. No pauses at any other time are permitted.
Cycles are strictly prohibited (use roles analysis). Performance
for this MemoryArea
is expected to be slightly slower
than for VTMemory
's.
Field Summary |
private static javax.realtime.RefCountArea |
refCountArea
|
Fields inherited from class javax.realtime.MemoryArea |
constant, heap, id, logic, memoryConsumed, nullClassArr, nullMem, nullObjArr, scoped, shadow, size |
Method Summary |
void |
DECREF(java.lang.Object o)
|
void |
INCREF(java.lang.Object o)
These two methods will go away in the future... |
protected void |
initNative(long sizeInBytes)
Initialize the native component of this MemoryArea . |
static javax.realtime.RefCountArea |
refInstance()
Returns the only RefCountArea instance, allocated out of
an ImmortalMemory. |
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 |
refCountArea
private static javax.realtime.RefCountArea refCountArea
RefCountArea
public RefCountArea()
initNative
protected void initNative(long sizeInBytes)
- Initialize the native component of this
MemoryArea
.
- Overrides:
initNative
in class ImmortalMemory
refInstance
public static javax.realtime.RefCountArea refInstance()
- Returns the only RefCountArea instance, allocated out of
an ImmortalMemory.
INCREF
public void INCREF(java.lang.Object o)
- These two methods will go away in the future...
DECREF
public void DECREF(java.lang.Object o)
toString
public java.lang.String toString()
- Description copied from class:
MemoryArea
- Output a helpful string describing this MemoryArea.
- Overrides:
toString
in class ImmortalMemory