Close
Close window
gc - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

gc

garbage collection

Calling Sequence

gc()

Description

Invocation of this function causes a garbage collection to occur. Garbage collection has the effect of deleting all data to which no references are made. It also cleans the remember tables of procedures with an option system or option builtin by removing entries that have no other references to them. Note, as of Maple 16 the use of gc is discouraged.

This function returns the value NULL.

In the Command-line interface, the function prints a message showing three values:

bytes used=xxxx, alloc=yyyy, time=zzzz

where xxxx is the total bytes used, yyyy is the total bytes actually allocated, and zzzz is the total CPU time used (in seconds) since the start of the session.

In the Standard worksheet interface, the Memory value in the status bar at the bottom of the window is updated.

Thread Safety

The gc command is thread safe as of Maple 15. However calling gc requires that all running threads be paused for the gc to occur.

See Also


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /