%--------------------------------------------------%
% vim: ft=mercury ts=4 sw=4 et
%--------------------------------------------------%
% Copyright (C) 1999,2001-2007 The University of Melbourne.
% Copyright (C) 2014-2015, 2018 The Mercury team.
% This file is distributed under the terms specified in COPYING.LIB.
%--------------------------------------------------%
%
% 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.
%--------------------------------------------------%
%--------------------------------------------------%