Ruby: include/ruby/internal/intern/gc.h Source File

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

gc.h
Go to the documentation of this file.
1#ifndef RBIMPL_INTERN_GC_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_INTERN_GC_H
23#include "ruby/internal/dllexport.h"
24#include "ruby/internal/value.h"
25#include "ruby/backward/2/attributes.h"
26
27 RBIMPL_SYMBOL_EXPORT_BEGIN()
28
29/* gc.c */
30 COLDFUNC NORETURN(void rb_memerror(void));
31 PUREFUNC(int rb_during_gc(void));
32void rb_gc_mark_locations(const VALUE*, const VALUE*);
33void rb_mark_tbl(struct st_table*);
34void rb_mark_tbl_no_pin(struct st_table*);
35void rb_mark_set(struct st_table*);
36void rb_mark_hash(struct st_table*);
37void rb_gc_update_tbl_refs(st_table *ptr);
38void rb_gc_mark_maybe(VALUE);
39void rb_gc_mark(VALUE);
40void rb_gc_mark_movable(VALUE);
41 VALUE rb_gc_location(VALUE);
42void rb_gc_force_recycle(VALUE);
43void rb_gc(void);
44void rb_gc_copy_finalizer(VALUE,VALUE);
45 VALUE rb_gc_enable(void);
46 VALUE rb_gc_disable(void);
47 VALUE rb_gc_start(void);
48 VALUE rb_define_finalizer(VALUE, VALUE);
49 VALUE rb_undefine_finalizer(VALUE);
50size_t rb_gc_count(void);
51size_t rb_gc_stat(VALUE);
52 VALUE rb_gc_latest_gc_info(VALUE);
53void rb_gc_adjust_memory_usage(ssize_t);
54
55 RBIMPL_SYMBOL_EXPORT_END()
56
57#endif /* RBIMPL_INTERN_GC_H */
attributes.h
Various attribute-related macros.
COLDFUNC
#define COLDFUNC
Definition: attributes.h:110
PUREFUNC
#define PUREFUNC(x)
Definition: attributes.h:54
NORETURN
#define NORETURN(x)
Definition: attributes.h:152
ptr
struct RIMemo * ptr
Definition: debug.c:88
dllexport.h
Tewaking visibility of C variables/functions.
RBIMPL_SYMBOL_EXPORT_END
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
Definition: dllexport.h:86
RBIMPL_SYMBOL_EXPORT_BEGIN
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Definition: dllexport.h:77
rb_memerror
void rb_memerror(void)
Definition: gc.c:10309
rb_mark_tbl
void rb_mark_tbl(struct st_table *)
Definition: gc.c:5893
rb_gc_mark_maybe
void rb_gc_mark_maybe(VALUE)
Definition: gc.c:5931
rb_gc_disable
VALUE rb_gc_disable(void)
Definition: gc.c:9925
rb_gc_start
VALUE rb_gc_start(void)
Definition: gc.c:9490
rb_gc_latest_gc_info
VALUE rb_gc_latest_gc_info(VALUE)
Definition: gc.c:9634
rb_gc_enable
VALUE rb_gc_enable(void)
Definition: gc.c:9888
rb_define_finalizer
VALUE rb_define_finalizer(VALUE, VALUE)
Definition: gc.c:3604
rb_undefine_finalizer
VALUE rb_undefine_finalizer(VALUE)
Definition: gc.c:3453
rb_during_gc
int rb_during_gc(void)
Definition: gc.c:9505
rb_gc_stat
size_t rb_gc_stat(VALUE)
Definition: gc.c:9853
rb_gc
void rb_gc(void)
Definition: gc.c:9497
rb_gc_location
VALUE rb_gc_location(VALUE)
Definition: gc.c:9003
rb_gc_update_tbl_refs
void rb_gc_update_tbl_refs(st_table *ptr)
Definition: gc.c:8850
rb_gc_adjust_memory_usage
void rb_gc_adjust_memory_usage(ssize_t)
Definition: gc.c:11062
rb_gc_mark
void rb_gc_mark(VALUE)
Definition: gc.c:6112
rb_gc_mark_locations
void rb_gc_mark_locations(const VALUE *, const VALUE *)
Definition: gc.c:5580
rb_gc_force_recycle
void rb_gc_force_recycle(VALUE)
Definition: gc.c:7968
rb_gc_mark_movable
void rb_gc_mark_movable(VALUE)
Definition: gc.c:6106
rb_gc_copy_finalizer
void rb_gc_copy_finalizer(VALUE, VALUE)
Definition: gc.c:3612
rb_mark_set
void rb_mark_set(struct st_table *)
Definition: gc.c:5686
rb_mark_hash
void rb_mark_hash(struct st_table *)
Definition: gc.c:5750
rb_gc_count
size_t rb_gc_count(void)
Definition: gc.c:9529
rb_mark_tbl_no_pin
void rb_mark_tbl_no_pin(struct st_table *)
Definition: gc.c:5899
const
#define const
Definition: strftime.c:108
st_table
Definition: st.h:79
value.h
Defines VALUE and ID.
VALUE
unsigned long VALUE
Definition: value.h:38