Product Documentation
Cadence SKILL Language Reference
Product Version IC23.1, November 2023

gc

gc( 
[ t_string ] 
) 
=> nil

Description

Forces a garbage collection. This function is also called by the system.

Garbage collection (gc) refers to the process in which SKILL locates storage cells that are no longer needed (thus the term garbage) and recycles them by putting them back on the free storage list. Garbage collection is also called by the system. Garbage collection is transparent to SKILL users and to users of applications built on top of SKILL.

You can turn on the printing of garbage collection messages by setting the _gcprint variable to t (that is, _gcprint=t). Garbage collection can be turned off at any time by setting the gcdisable variable to t. To enable garbage collection again, you can restore gcdisable to its previous value. You can force a garbage collection at any time by calling the gc function.

Because some applications turn off garbage collection during their execution, you should be careful about enabling it. Corrupted data can result.

Arguments

t_string

File into which additional information is dumped.

Value Returned

nil

Always returns nil.

Examples

gc( ) 
=> nil

Related Topics

Core Functions

gcsummary


Return to top
 ⠀
X