#include <heap-consistency.h>
Public Types | |
using | WriteBarrierParams = internal::WriteBarrier::Params |
using | WriteBarrierType = internal::WriteBarrier::Type |
Static Public Member Functions | |
static WriteBarrierType | GetWriteBarrierType (const void *slot, const void *value, WriteBarrierParams ¶ms) |
template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy , typename StorageType > | |
static WriteBarrierType | GetWriteBarrierType (const internal::BasicMember< T, WeaknessTag, WriteBarrierPolicy, CheckingPolicy, StorageType > &value, WriteBarrierParams ¶ms) |
template<typename HeapHandleCallback > | |
static WriteBarrierType | GetWriteBarrierType (const void *slot, WriteBarrierParams ¶ms, HeapHandleCallback callback) |
static WriteBarrierType | GetWriteBarrierType (const void *value, WriteBarrierParams ¶ms) |
static void | DijkstraWriteBarrier (const WriteBarrierParams ¶ms, const void *object) |
static void | DijkstraWriteBarrierRange (const WriteBarrierParams ¶ms, const void *first_element, size_t element_size, size_t number_of_elements, TraceCallback trace_callback) |
static void | SteeleWriteBarrier (const WriteBarrierParams ¶ms, const void *object) |
static void | GenerationalBarrier (const WriteBarrierParams ¶ms, const void *slot) |
static void | GenerationalBarrierForUncompressedSlot (const WriteBarrierParams ¶ms, const void *uncompressed_slot) |
static void | GenerationalBarrierForSourceObject (const WriteBarrierParams ¶ms, const void *inner_pointer) |
DO NOT USE: Use the appropriate managed types.
Consistency helpers that aid in maintaining a consistent internal state of the garbage collector.
|
inlinestatic |
Conservative Dijkstra-style write barrier that processes an object if it has not yet been processed.
params | The parameters retrieved from GetWriteBarrierType() . |
object | The pointer to the object. May be an interior pointer to an interface of the actual object. |
|
inlinestatic |
Conservative Dijkstra-style write barrier that processes a range of elements if they have not yet been processed.
params | The parameters retrieved from GetWriteBarrierType() . |
first_element | Pointer to the first element that should be processed. The slot itself must reside in an object that has been allocated using MakeGarbageCollected() . |
element_size | Size of the element in bytes. |
number_of_elements | Number of elements that should be processed, starting with first_element . |
trace_callback | The trace callback that should be invoked for each element if necessary. |
|
inlinestatic |
Generational barrier for maintaining consistency when running with multiple generations.
params | The parameters retrieved from GetWriteBarrierType() . |
slot | Slot containing the pointer to the object. The slot itself must reside in an object that has been allocated using MakeGarbageCollected() . |
|
inlinestatic |
Generational barrier for source object that may contain outgoing pointers to objects in young generation.
params | The parameters retrieved from GetWriteBarrierType() . |
inner_pointer | Pointer to the source object. |
|
inlinestatic |
Generational barrier for maintaining consistency when running with multiple generations. This version is used when slot contains uncompressed pointer.
params | The parameters retrieved from GetWriteBarrierType() . |
slot | Uncompressed slot containing the direct pointer to the object. The slot itself must reside in an object that has been allocated using MakeGarbageCollected() . |
|
inlinestatic |
Gets the required write barrier type for a specific write. This override is only used for all the BasicMember types.
slot | Slot containing the pointer to the object. The slot itself must reside in an object that has been allocated using MakeGarbageCollected() . |
value | The pointer to the object held via BasicMember . |
params | Parameters that may be used for actual write barrier calls. Only filled if return value indicates that a write barrier is needed. The contents of the params are an implementation detail. |
|
inlinestatic |
Gets the required write barrier type for a specific write.
slot | Slot containing the pointer to the object. The slot itself must reside in an object that has been allocated using MakeGarbageCollected() . |
value | The pointer to the object. May be an interior pointer to an interface of the actual object. |
params | Parameters that may be used for actual write barrier calls. Only filled if return value indicates that a write barrier is needed. The contents of the params are an implementation detail. |
|
inlinestatic |
Gets the required write barrier type for a specific write.
slot | Slot to some part of an object. The object must not necessarily have been allocated using MakeGarbageCollected() but can also live off-heap or on stack. |
params | Parameters that may be used for actual write barrier calls. Only filled if return value indicates that a write barrier is needed. The contents of the params are an implementation detail. |
callback | Callback returning the corresponding heap handle. The callback is only invoked if the heap cannot otherwise be figured out. The callback must not allocate. |
|
inlinestatic |
Gets the required write barrier type for a specific write. This version is meant to be used in conjunction with with a marking write barrier barrier which doesn't consider the slot.
value | The pointer to the object. May be an interior pointer to an interface of the actual object. |
params | Parameters that may be used for actual write barrier calls. Only filled if return value indicates that a write barrier is needed. The contents of the params are an implementation detail. |
|
inlinestatic |
Steele-style write barrier that re-processes an object if it has already been processed.
params | The parameters retrieved from GetWriteBarrierType() . |
object | The pointer to the object which must point to an object that has been allocated using MakeGarbageCollected() . Interior pointers are not supported. |