Minor refactor
This commit is contained in:
@ -653,12 +653,11 @@ static ptrdiff_t check_gc_root(RefcountContext *ctx, RefcountList **root_ptr) {
|
|||||||
// future)
|
// future)
|
||||||
while (queue) {
|
while (queue) {
|
||||||
void *obj = queue->data;
|
void *obj = queue->data;
|
||||||
|
queue = refcount_list_pop_full(queue, NULL, &ctx->alloc);
|
||||||
if (!obj || refcount_context_is_static(ctx, obj)) {
|
if (!obj || refcount_context_is_static(ctx, obj)) {
|
||||||
queue = refcount_list_pop_full(queue, NULL, &ctx->alloc);
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
uintptr_t count;
|
uintptr_t count;
|
||||||
queue = refcount_list_pop_full(queue, NULL, &ctx->alloc);
|
|
||||||
if (ht_has(counts, obj)) {
|
if (ht_has(counts, obj)) {
|
||||||
count = HT_UUNSTUFF(ht_get(counts, obj));
|
count = HT_UUNSTUFF(ht_get(counts, obj));
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user