Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /sml/trunk/src/runtime/gc/heap-monitor.h
ViewVC logotype

Annotation of /sml/trunk/src/runtime/gc/heap-monitor.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (view) (download) (as text)

1 : monnier 2 /* heap-monitor.h
2 :     *
3 :     * COPYRIGHT (c) 1993 by AT&T Bell Laboratories.
4 :     *
5 :     * The interface of an X-windows heap monitor.
6 :     */
7 :    
8 :     #ifndef _HEAP_MONITOR_
9 :     #define _HEAP_MONITOR_
10 :    
11 :     #ifndef _ML_BASE_
12 :     #include "ml-base.h"
13 :     #endif
14 :    
15 :    
16 :     #ifdef HEAP_MONITOR
17 :    
18 :     typedef struct monitor monitor_t;
19 :    
20 :     extern void HeapMon_StartGC (heap_t *heap, int maxCollectedGen);
21 :     extern void HeapMon_UpdateHeap (heap_t *heap, int MaxCollectedGen);
22 :     extern void HeapMon_MarkRegion (heap_t *heap, ml_val_t *base, Word_t szB, aid_t aid);
23 :     extern void HeapMon_MarkFromSp (heap_t *heap, ml_val_t *base, Word_t szB);
24 :    
25 :     #else
26 :    
27 :     /* Macros to nullify calls to the heap monitor routines. */
28 :     #define HeapMon_StartGC(A,B)
29 :     #define HeapMon_UpdateHeap(A,B)
30 :     #define HeapMon_MarkRegion(A,B,C,D)
31 :     #define HeapMon_MarkFromSp(A,B,C)
32 :    
33 :     #endif
34 :    
35 :     #endif /* !_HEAP_MONITOR_ */
36 :    

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0