gc

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package gc provides manual garbage collection to release heap memory.

Index

Constants

View Source
const (
	GC_SIZE = 50 << 20 // default 50MB
)

Variables

This section is empty.

Functions

func ManualGC

func ManualGC()

ManualGC periodically frees memory from the heap for reuse. Skipped for gust adoption: runtime.ReadMemStats, debug.FreeOSMemory, and time.Tick do not return errors; no error-returning functions to convert.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL