core.internal.gc.impl.proto.gc

Types 1

classProtoGC : GC
Fields
Array!Root roots
Array!Range ranges
private GCThreadInitFunction _initThreadFn
Methods
void Dtor()
void enable()
void disable()
void collect() nothrow
void minimize() nothrow
uint getAttr(void * p) nothrow
uint setAttr(void * p, uint mask) nothrow
uint clrAttr(void * p, uint mask) nothrow
void * malloc(size_t size, uint bits, const scope TypeInfo ti) nothrow
BlkInfo qalloc(size_t size, uint bits, const scope TypeInfo ti) nothrow
void * calloc(size_t size, uint bits, const scope TypeInfo ti) nothrow
void * realloc(void * p, size_t size, uint bits, const scope TypeInfo ti) nothrow
size_t extend(void * p, size_t minsize, size_t maxsize, const scope TypeInfo ti) nothrow
size_t reserve(size_t size) nothrow
void free(void * p) nothrow @nogc
void * addrOf(void * p) nothrow @nogc
size_t sizeOf(void * p) nothrow @nogc
BlkInfo query(void * p) nothrow
core.memory.GC.Stats stats() nothrow
core.memory.GC.ProfileStats profileStats() nothrow
void addRoot(void * p) nothrow @nogc
void removeRoot(void * p) nothrow @nogc
RootIterator rootIter() @property return @nogc
private int rootsApply(scope int delegate(ref Root) nothrow dg)
void addRange(void * p, size_t sz, const TypeInfo ti = null) nothrow @nogc
void removeRange(void * p) nothrow @nogc
RangeIterator rangeIter() @property return @nogc
private int rangesApply(scope int delegate(ref Range) nothrow dg)
void runFinalizers(const scope void[] segment) nothrow
bool inFinalizer() nothrow
ulong allocatedInCurrentThread() nothrow
void[] getArrayUsed(void * ptr, bool atomic = false) nothrow
bool expandArrayUsed(void[] slice, size_t newUsed, bool atomic = false) nothrow @safe
size_t reserveArrayCapacity(void[] slice, size_t request, bool atomic = false) nothrow @safe
bool shrinkArrayUsed(void[] slice, size_t existingUsed, bool atomic = false) nothrow
void initThread(ThreadBase thread) nothrow
Constructors

Functions 12

fnnoreturn onOutOfMemoryError(void * pretend_sideffect = null, string file = __FILE__, size_t line = __LINE__) @trusted pure nothrow @nogc
fnvoid gc_init_nothrow() nothrow @nogc
fnvoid gc_term()
fnvoid gc_enable() nothrow;
fnvoid gc_disable() nothrow;
fnvoid * gc_malloc( size_t sz, uint ba = 0, const scope TypeInfo = null ) pure nothrow;
fnvoid * gc_calloc( size_t sz, uint ba = 0, const scope TypeInfo = null ) pure nothrow;
fnBlkInfo gc_qalloc( size_t sz, uint ba = 0, const scope TypeInfo = null ) pure nothrow;
fnvoid * gc_realloc(return scope void * p, size_t sz, uint ba = 0, const scope TypeInfo = null ) pure nothrow;
fnsize_t gc_reserve( size_t sz ) nothrow;
fnvoid gc_addRange(const void * p, size_t sz, const scope TypeInfo ti = null ) nothrow @nogc
fnvoid gc_addRoot(const void * p ) nothrow @nogc