Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
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 worksheet interfaces, the status bar at the bottom of the window is updated. In the Standard Worksheet interface, Maple updates the Memory value. In the Classic Worksheet interface, Maple updates the Bytes value.
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
kernelopts
Download Help Document