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
|
|
|
/* */
|
|
|
|
/* Xavier Leroy and Damien Doligez, 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 */
|
2001-12-07 05:41:02 -08:00
|
|
|
/* under the terms of the GNU Library General Public License, with */
|
|
|
|
/* the special exception on linking described in file ../LICENSE. */
|
1995-08-09 08:06:35 -07:00
|
|
|
/* */
|
|
|
|
/***********************************************************************/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
2003-12-15 10:10:51 -08:00
|
|
|
#ifndef CAML_ROOTS_H
|
|
|
|
#define CAML_ROOTS_H
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
#include "misc.h"
|
1997-08-29 08:37:22 -07:00
|
|
|
#include "memory.h"
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1997-09-02 05:55:01 -07:00
|
|
|
typedef void (*scanning_action) (value, value *);
|
1997-05-13 07:45:38 -07:00
|
|
|
|
2004-01-01 08:42:43 -08:00
|
|
|
void caml_oldify_local_roots (void);
|
|
|
|
void caml_darken_all_roots (void);
|
|
|
|
void caml_do_roots (scanning_action);
|
1997-08-29 08:37:22 -07:00
|
|
|
#ifndef NATIVE_CODE
|
2004-01-01 08:42:43 -08:00
|
|
|
CAMLextern void caml_do_local_roots (scanning_action, value *, value *,
|
|
|
|
struct caml__roots_block *);
|
1997-08-29 08:37:22 -07:00
|
|
|
#else
|
2004-01-01 08:42:43 -08:00
|
|
|
CAMLextern void caml_do_local_roots(scanning_action f, char * bottom_of_stack,
|
2005-09-22 07:21:50 -07:00
|
|
|
uintnat last_retaddr, value * gc_regs,
|
2004-01-01 08:42:43 -08:00
|
|
|
struct caml__roots_block * local_roots);
|
1997-08-29 08:37:22 -07:00
|
|
|
#endif
|
1995-05-04 03:15:53 -07:00
|
|
|
|
2004-01-01 08:42:43 -08:00
|
|
|
CAMLextern void (*caml_scan_roots_hook) (scanning_action);
|
1995-05-04 03:15:53 -07:00
|
|
|
|
2003-12-15 10:10:51 -08:00
|
|
|
#endif /* CAML_ROOTS_H */
|