scheme48heap.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*
  2. * Part of Scheme 48 1.9. See file COPYING for notices and license.
  3. *
  4. * Authors: Richard Kelsey, Jonathan Rees, David Frese, Mike Sperber,
  5. * Marcus Crestani
  6. */
  7. /*
  8. * Externally visible objects defined in scheme48heap.c.
  9. */
  10. /* initialize top-level variables */
  11. extern void s48_heap_init(void);
  12. /* called from init.c */
  13. extern void s48_forbid_gcB(void);
  14. extern void s48_allow_gcB(void);
  15. /* heap-init interface */
  16. extern void s48_initialize_heap(long, char *, long);
  17. extern void s48_initialize_image_areas(long, long, long, long, long, long);
  18. extern void s48_register_static_areas(long, char **, long *,
  19. long, char **, long *);
  20. /* heap interface */
  21. extern long s48_available(void);
  22. extern char s48_stob_in_heapP(long);
  23. extern long s48_heap_size(void);
  24. extern long s48_find_all(long);
  25. extern long s48_find_allint(long);
  26. extern long s48_find_all_records(long);
  27. extern long s48_gather_objects(char(*)(long), char(*)(char(*)(long)));
  28. /* for reading/writing images (scm-module heap-base ) */
  29. extern void s48_set_max_heap_sizeB(long);
  30. extern long s48_max_heap_size(void);
  31. extern char * s48_get_new_heap_start_addr(void);
  32. extern char * s48_get_new_small_start_addr(void);
  33. extern void s48_set_new_small_start_addrB(char *);
  34. extern char * s48_get_new_small_end_addr(void);
  35. extern long s48_get_new_small_size(void);
  36. extern char * s48_get_new_large_start_addr(void);
  37. extern void s48_set_new_large_start_addrB(char *);
  38. extern char * s48_get_new_large_end_addr(void);
  39. extern long s48_get_new_large_size(void);
  40. extern char * s48_get_new_weaks_start_addr(void);
  41. extern void s48_set_new_weaks_start_addrB(char *);
  42. extern char * s48_get_new_weaks_end_addr(void);
  43. extern long s48_get_new_weaks_size(void);
  44. extern char * s48_heap_begin(void);
  45. extern char * s48_heap_pointer(void);
  46. extern char * s48_oldspace_begin(void);
  47. extern char * s48_oldspace_end(void);
  48. extern int s48_area_type_size(s48_value); /* return value is really an enum */
  49. /* gc interface */
  50. extern void s48_check_heap_sizeB(void);
  51. extern void s48_collect(psbool);
  52. extern long s48_trace_value(long);
  53. extern void s48_trace_locationsB(char *, char *);
  54. extern void s48_trace_stob_contentsB(long);
  55. extern void s48_trace_continuation_contentsB(char *, char *, long);
  56. extern char s48_extantP(long);
  57. extern long s48_gc_count(void);
  58. /* allocation interface */
  59. extern void s48_make_availableAgc(long);
  60. extern char * s48_allocate_small(long);
  61. extern char * s48_allocate_tracedAgc(long);
  62. extern char * s48_allocate_untracedAgc(long);
  63. extern char * s48_allocate_weakAgc(long);
  64. extern char * s48_allocate_untraced_unmovableAgc(long);
  65. /* debugging */
  66. extern char s48_check_heap(long);