MCPcopy Create free account
hub / github.com/beefytech/Beef / IsHeapObject

Method IsHeapObject

BeefRT/dbg/gc.cpp:903–914  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

901static tcmalloc_obj::Span* gLastSpan = NULL;
902
903bool BFGC::IsHeapObject(bf::System::Object* obj)
904{
905 //BP_ZONE("IsHeapObject");
906
907 if ((obj >= tcmalloc_obj::PageHeap::sAddressStart) && (obj < tcmalloc_obj::PageHeap::sAddressEnd))
908 {
909 tcmalloc_obj::Span* span = TCGetSpanAt(obj);
910 gLastSpan = span;
911 return span != NULL;
912 }
913 return false;
914}
915
916/*void BFGC::MarkTypeStatics(BFTypeRoot* checkType)
917{

Callers

nothing calls this directly

Calls 1

TCGetSpanAtFunction · 0.85

Tested by

no test coverage detected