diff options
| author | gareuselesinge | 2013-10-24 15:41:38 +0000 |
|---|---|---|
| committer | gareuselesinge | 2013-10-24 15:41:38 +0000 |
| commit | a2388b6ae2b3bf680d03487abac00787e50976f9 (patch) | |
| tree | caffd66cb61e6f0cdb99c4d7f21e310fb3b33662 /kernel | |
| parent | 7bded288b7727625ee353af5a142ecba15d57240 (diff) | |
Ephemeron: add a function to run a collection cycle
This is necessary if one wants to check how much memory
Coq uses after a collection. The idiom is:
Gc.full_major (); Ephemeron.clear (); Gc.full_major ();
since the first collection may just put collected ephemerons
in a to_be_cleared list that is processed by Ephemeron.get/create/clear.
Processing the list may create new garbage (the content of the ephemeron),
Hence a new Gc cycle has to be run afterwards.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16929 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions
