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