rt: Skip over the reference count properly before walking the contents of the box when determining internal reference counts
This commit is contained in:
parent
74194df7dd
commit
ab76305cb9
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue