1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

gc: make generational mode of Boehm-GC available (#9514)

This commit is contained in:
Uwe Krüger
2021-03-30 09:36:22 +02:00
committed by GitHub
parent a3455b8433
commit 97f43d6a97
8 changed files with 116 additions and 11 deletions

View File

@@ -71,10 +71,16 @@ see also `v help build`.
more performant without autofree.
-gc <mode>
Use and link an optional garbage collector.
Only `-gc boehm` and `-gc boehm_leak` are supported currently.
You need to install a `libgc-dev` package first, or install it manually
from source:
Use and link an optional garbage collector. Only tThe BoehmDemersWeiser
garbage collector is supported currently with the following sub-options:
`-gc boehm` ........ selects the default mode for the architecture
`-gc boehm_full` ... full garbage collection mode
`-gc boehm_incr` ... incremental/generational garbage collection mode
`-gc boehm_leak` ... leak detection mode
You need to install a `libgc-dev` package first, or install it manually from:
https://github.com/ivmai/bdwgc
Note, `-gc boehm` is complementary to -autofree. The Boehm garbage