MCPcopy Create free account
hub / github.com/WheretIB/nullc / SetUnmanagableRange

Function SetUnmanagableRange

NULLC/Executor_Common.cpp:424–428  ·  view source on GitHub ↗

Set range of memory that is not checked. Used to exclude pointers to stack from marking and GC

Source from the content-addressed store, hash-verified

422
423// Set range of memory that is not checked. Used to exclude pointers to stack from marking and GC
424void SetUnmanagableRange(char* base, unsigned int size)
425{
426 GC::unmanageableBase = base;
427 GC::unmanageableTop = base + size;
428}
429int IsPointerUnmanaged(NULLCRef ptr)
430{
431 return ptr.ptr >= GC::unmanageableBase && ptr.ptr <= GC::unmanageableTop;

Callers 5

ExtendMemoryFunction · 0.85
SetStackPlacementMethod · 0.85
InitExecutionMethod · 0.85
InitExecutionMethod · 0.85
ExtendParameterStackMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected