1995-08-09 08:06:35 -07:00
|
|
|
/***********************************************************************/
|
|
|
|
/* */
|
1996-04-30 07:53:58 -07:00
|
|
|
/* Objective Caml */
|
1995-08-09 08:06:35 -07:00
|
|
|
/* */
|
|
|
|
/* Damien Doligez, projet Para, INRIA Rocquencourt */
|
|
|
|
/* */
|
1996-04-30 07:53:58 -07:00
|
|
|
/* Copyright 1996 Institut National de Recherche en Informatique et */
|
1995-08-09 08:06:35 -07:00
|
|
|
/* Automatique. Distributed only by permission. */
|
|
|
|
/* */
|
|
|
|
/***********************************************************************/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
#ifndef _minor_gc_
|
|
|
|
#define _minor_gc_
|
|
|
|
|
|
|
|
|
|
|
|
#include "misc.h"
|
|
|
|
|
1995-12-22 09:49:35 -08:00
|
|
|
extern char *young_start, *young_ptr, *young_end, *young_limit;
|
1995-05-04 03:15:53 -07:00
|
|
|
extern value **ref_table_ptr, **ref_table_limit;
|
|
|
|
extern asize_t minor_heap_size;
|
1995-07-24 05:46:59 -07:00
|
|
|
extern int in_minor_collection;
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
#define Is_young(val) \
|
|
|
|
((addr)(val) > (addr)young_start && (addr)(val) < (addr)young_end)
|
|
|
|
|
|
|
|
extern void set_minor_heap_size P((asize_t));
|
|
|
|
extern void minor_collection P((void));
|
1996-11-07 05:12:33 -08:00
|
|
|
extern void garbage_collection P((void)); /* for the native-code system */
|
1995-05-04 03:15:53 -07:00
|
|
|
extern void realloc_ref_table P((void));
|
1995-10-30 02:21:28 -08:00
|
|
|
extern void oldify P((value, value *));
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
#endif /* _minor_gc_ */
|