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

doc: clarify the section about -autofree (#13309)

This commit is contained in:
kahsa 2022-01-28 20:18:59 +09:00 committed by GitHub
parent 61d28c8a8c
commit 7f22ed7935
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3888,6 +3888,11 @@ memory manually. (See [attributes](#attributes)).
_Note: right now autofree is hidden behind the -autofree flag. It will be enabled by
default in V 0.3. If autofree is not used, V programs will leak memory._
Note 2: Autofree is still WIP. Until it stabilises and becomes the default, please
compile your long running processes with `-gc boehm`, which will use the
Boehm-Demers-Weiser conservative garbage collector, to free the memory, that your
programs leak, at runtime.
### Examples
```v