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 */
|
1999-11-17 10:59:06 -08:00
|
|
|
/* en Automatique. All rights reserved. This file is distributed */
|
|
|
|
/* under the terms of the GNU Library General Public License. */
|
1995-08-09 08:06:35 -07:00
|
|
|
/* */
|
|
|
|
/***********************************************************************/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
#ifndef _minor_gc_
|
|
|
|
#define _minor_gc_
|
|
|
|
|
|
|
|
|
|
|
|
#include "misc.h"
|
|
|
|
|
2001-08-28 07:47:48 -07:00
|
|
|
CAMLextern char *young_start, *young_ptr, *young_end, *young_limit;
|
|
|
|
CAMLextern value **ref_table_ptr, **ref_table_limit;
|
1995-05-04 03:15:53 -07:00
|
|
|
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) \
|
2000-01-07 08:51:58 -08:00
|
|
|
((addr)(val) < (addr)young_end && (addr)(val) > (addr)young_start)
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1997-09-02 05:55:01 -07:00
|
|
|
extern void set_minor_heap_size (asize_t);
|
2000-01-07 08:51:58 -08:00
|
|
|
extern void empty_minor_heap (void);
|
2001-08-28 07:47:48 -07:00
|
|
|
CAMLextern void minor_collection (void);
|
|
|
|
CAMLextern void garbage_collection (void); /* for the native-code system */
|
1997-09-02 05:55:01 -07:00
|
|
|
extern void realloc_ref_table (void);
|
|
|
|
extern void oldify (value, value *);
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
#endif /* _minor_gc_ */
|