void GCVisitor::visitPotentialRange(void* const* start, void* const* end) { ASSERT((const char*)end - (const char*)start <= 1000000000, "Asked to scan %.1fGB -- a bug?", ((const char*)end - (const char*)start) * 1.0 / (1 << 30)); assert((uintptr_t)start % sizeof(void*) == 0); assert((uintptr_t)end % sizeof(void*) == 0); while (start < end) { visitPotential(*start); start++; } }
void TraceStackGCVisitor::visitPotentialRange(void** start, void** end) { while (start < end) { visitPotential(*start); start++; } }