rt: Skip over the reference count properly before walking the contents of the box when determining internal reference counts

This commit is contained in:
Patrick Walton 2011-09-20 19:14:31 -07:00
parent 74194df7dd
commit ab76305cb9

View File

@ -163,6 +163,8 @@ irc::compute_ircs(rust_task *task, irc_map &ircs) {
end(task->local_allocs.end());
while (begin != end) {
uint8_t *p = reinterpret_cast<uint8_t *>(begin->first);
p += sizeof(uintptr_t); // Skip over the reference count.
type_desc *tydesc = begin->second;
DPRINT("determining internal ref counts: %p, tydesc=%p\n", p, tydesc);