Minor refactor

This commit is contained in:
2025-09-09 04:28:44 -07:00
parent 77cc3c45de
commit aec2f6145e

View File

@ -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 {