From eab018cdc719d6afdacd92751d8298157a9133d7 Mon Sep 17 00:00:00 2001 From: alaviss Date: Sat, 20 Jan 2024 18:21:54 +0000 Subject: [PATCH] nimsuggest: no need to enable orc before collection The cycle collector runs upon GC_fullCollect(), as such there is no need to enable them. However running the collector would enable ORC, so we still have to disable it afterwards --- nimsuggest/nimsuggest.nim | 2 -- 1 file changed, 2 deletions(-) diff --git a/nimsuggest/nimsuggest.nim b/nimsuggest/nimsuggest.nim index 126539d8192..b881880b537 100644 --- a/nimsuggest/nimsuggest.nim +++ b/nimsuggest/nimsuggest.nim @@ -211,8 +211,6 @@ proc runGc() = ## Runs a GC collection pass. This procedure will also collect any cycles assuming ORC is in use. ## ## When nimsuggest is being used as a library, no GC mode change will be performed. - when isMainModule and defined(gcOrc): - GC_enableOrc() GC_fullCollect() when isMainModule and defined(gcOrc): GC_disableOrc()