.TH "Gc.Tweak" 3 2026-06-22 OCamldoc "OCaml library" .SH NAME Gc.Tweak \- GC Tweaks are unstable and undocumented configurable GC parameters, primarily intended for use by GC developers. .SH Module Module Gc.Tweak .SH Documentation .sp Module .BI "Tweak" : .B sig end .sp GC Tweaks are unstable and undocumented configurable GC parameters, primarily intended for use by GC developers\&. .sp As well as using Gc\&.Tweak\&.set "foo" 42, they can also be configured in OCAMLRUNPARAM, using the following syntax: .sp OCAMLRUNPARAM=\&'Xfoo=42\&' .sp Additionally, OCAMLRUNPARAM=Xhelp will show the available GC tweaks\&. .sp .B "Since" 5.5 .sp .sp .sp .I val set : .B string -> int -> unit .sp Change a parameter\&. Raises Invalid_argument if no such parameter exists .sp .I val get : .B string -> int .sp Retrieve a parameter value\&. Raises Invalid_argument if no such parameter exists .sp .I val list_active : .B unit -> (string * int) list .sp Returns the list of parameters and their values that currently have non\-default values .sp