Skip to content

What kind of GC is -gc=precise? #3997

Open
@vlkv

Description

@vlkv

Hello!
There is no info about -gc=precise option on https://tinygo.org/docs/reference/usage/important-options/ page. But such option definitely exists, because of

validGCOptions = []string{"none", "leaking", "conservative", "custom", "precise"}

tinygo --help also says not much:

  -gc string
    	garbage collector to use (none, leaking, conservative)

Can you please explain what is this kind of GC and what are its pros/cons (compared to 'conservative')?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation neededquestionQuestion about usage of TinyGo

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions