Next: , Previous: float, Up: Top


28 gc

     %--------------------------------------------------%
     % vim: ft=mercury ts=4 sw=4 et wm=0 tw=0
     %--------------------------------------------------%
     % Copyright (C) 1999,2001-2007 The University of Melbourne.
     % This file may only be copied under the terms of the GNU Library General
     % Public License - see the file COPYING.LIB in the Mercury distribution.
     %--------------------------------------------------%
     %
     % File: gc.m.
     % Author: fjh.
     % Stability: medium.
     %
     % This module defines some procedures for controlling the actions of the
     % garbage collector.
     %
     %--------------------------------------------------%
     %--------------------------------------------------%
     
     :- module gc.
     :- interface.
     
     :- import_module io.
     
     %--------------------------------------------------%
     
     	% Force a garbage collection.
     	%
     :- pred garbage_collect(io.state::di, io.state::uo) is det.
     
     	% Force a garbage collection.
     	% Note that this version is not really impure, but it needs to be
     	% declared impure to ensure that the compiler won't try to
     	% optimize it away.
     	%
     :- impure pred garbage_collect is det.
     
     %--------------------------------------------------%
     %--------------------------------------------------%