Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Nov 11, 2023
1 parent b43f95e commit c854190
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/common/objects/dobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,12 @@ static void PropagateMarkMap(M *map)

size_t DObject::PropagateMark()
{

const PClass *info = GetClass();
if (!PClass::bShutdown)
{
Printf("propagateMark for %p\n", this);
Printf("---> %s\n", GetClass()->TypeName.GetChars());
const size_t *offsets = info->FlatPointers;
if (offsets == NULL)
{
Expand All @@ -367,6 +370,8 @@ size_t DObject::PropagateMark()
}
while (*offsets != ~(size_t)0)
{
Printf("marking offset %d\n", int(*offsets));
Printmark((*(DObject**)((uint8_t*)this + *offsets)));
GC::Mark((DObject **)((uint8_t *)this + *offsets));
offsets++;
}
Expand Down

0 comments on commit c854190

Please sign in to comment.