1 \section[storage-manager-init]{Initialising the storage manager}
3 To initialise the storage manager, we pass it:
6 An @argc@/@argv@ combo, which are the command-line arguments that have
7 been deemed to belong to the runtime system. The initialisation
8 routine can slurp around in there for information of interest to
12 A filehandle to which any storage-manager statistics should be written.
17 #include "SMinternal.h"
20 \section[storage-manager-exit]{Winding up the storage manager}
24 exitSM (smInfo *sm_info)
28 /* Upon closing down the storage manager, we free all foreign objects
29 (in new *and* old generations)
31 rc = freeForeigns(sm_info->ForeignObjList);
32 # if defined(GCap) || defined(GCgn)
33 rc = freeForeigns(sm_info->OldForeignObjList);
37 /* Return code ignored for now */
38 stat_exit(sm_info->hp - hp_start);
40 return rtsTrue; /* I'm happy */