From 7da84eda1c8ad9b97a27a81cc8db5edf0970ab9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Santamaria?= Date: Thu, 26 Oct 2023 12:31:45 +0200 Subject: [PATCH] Optimise list marking for GC --- internal/obj/list.c | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/obj/list.c b/internal/obj/list.c index c51c8b5..129cb16 100644 --- a/internal/obj/list.c +++ b/internal/obj/list.c @@ -42,6 +42,7 @@ void mark_list_obj(struct object l) { if (l.data.list->m_parent != NULL) { *l.data.list->m_parent = 1; } + #pragma omp parallel for for (uint32_t i = 0; i < l.data.list->len; i++) { mark_obj(l.data.list->list[i]); }