Upgrading Semgrep from OCaml 4 to OCaml 5 + dynamic_gc utility

I’ve just released a new version that includes the following module:

module Config : sig
  (** Produces a simple config that will set space_overhead to 120, the default,
   * when the size of the major heap is below the given threshold. When the heap
   * is larger than the given threshold, space_overhead will be set to 80. *)
  val simple: threshold_mb:int -> config
end

That will make the utility even easier to configure while still allowing the application developer to set a memory threshold that is relevant to them.

3 Likes