30#include "gtype-desc.h"
48 size_t length_override = (
size_t)-1);
73#define LAST_GGC_ROOT_TAB { NULL, 0, 0, NULL, NULL }
81#define ggc_test_and_set_mark(EXPR) \
82 ((EXPR) != NULL && ((void *) (EXPR)) != (void *) 1 && ! ggc_set_mark (EXPR))
84#define ggc_mark(EXPR) \
86 const void *const a__ = (EXPR); \
87 if (a__ != NULL && a__ != (void *) 1) \
170#define GGC_RESIZEVEC(T, P, N) \
171 ((T *) ggc_realloc ((P), (N) * sizeof (T) MEM_STAT_INFO))
177 static_cast<T *
> (p)->~T ();
184#if GCC_VERSION >= 4003
185 return !__has_trivial_destructor (T);
281#define ggc_strdup(S) ggc_alloc_string ((S), -1 MEM_STAT_INFO)
317#define ggc_alloc_rtvec_sized(NELT) \
318 (rtvec_def *) ggc_internal_alloc (sizeof (struct rtvec_def) \
319 + ((NELT) - 1) * sizeof (rtx)) \
329inline union tree_node *
335inline union tree_node *
void gt_pch_nx(bbitmap< N > *)
Definition bbitmap.h:226
void gt_ggc_mx(bbitmap< N > *)
Definition bbitmap.h:220
void(*) gt_pointer_operator(void *, void *, void *)
Definition coretypes.h:469
void ggc_free(void *)
Definition genmatch.cc:52
void * ggc_internal_cleared_alloc_no_dtor(size_t, void(*)(void *), size_t, size_t MEM_STAT_DECL)
Definition genmatch.cc:45
void * ggc_internal_cleared_alloc(size_t, void(*)(void *), size_t, size_t MEM_STAT_DECL)
Definition genmatch.cc:38
void dump_ggc_loc_statistics()
Definition ggc-common.cc:1281
void init_ggc_heuristics(void)
Definition ggc-common.cc:1127
void gt_pch_note_callback(void *obj, void *base)
Definition ggc-common.cc:330
void report_heap_memory_use()
Definition ggc-common.cc:1329
void gt_pch_restore(FILE *f)
Definition ggc-common.cc:774
bool ggc_protect_identifiers
Definition ggc-common.cc:35
int gt_pch_note_object(void *obj, void *note_ptr_cookie, gt_note_pointers note_ptr_fn, size_t length_override)
Definition ggc-common.cc:297
void ggc_register_root_tab(const struct ggc_root_tab *rt)
Definition ggc-common.cc:60
void ggc_common_finalize()
Definition ggc-common.cc:1346
void gt_pch_save(FILE *f)
Definition ggc-common.cc:541
void gt_pch_note_reorder(void *obj, void *note_ptr_cookie, gt_handle_reorder reorder_fn)
Definition ggc-common.cc:348
void * ggc_realloc(void *x, size_t size MEM_STAT_DECL)
Definition ggc-common.cc:163
void ggc_grow(void)
Definition ggc-none.cc:121
void * ggc_internal_alloc(size_t size, void(*f)(void *), size_t, size_t MEM_STAT_DECL)
Definition ggc-none.cc:78
void * ggc_internal_alloc_no_dtor(size_t size, void(*f)(void *), size_t s, size_t n MEM_STAT_DECL)
Definition ggc-none.cc:94
size_t ggc_round_alloc_size(size_t requested_size)
Definition ggc-none.cc:38
void ggc_trim(void)
Definition ggc-none.cc:126
bool ggc_set_mark(const void *p)
Definition ggc-page.cc:1645
bool ggc_marked_p(const void *p)
Definition ggc-page.cc:1681
void ggc_print_statistics(void)
Definition ggc-page.cc:2387
void init_ggc(void)
Definition ggc-page.cc:1833
void gt_ggc_m_S(const void *p)
Definition ggc-page.cc:1564
union tree_node * ggc_alloc_tree_node_stat(size_t s CXX_MEM_STAT_INFO)
Definition ggc.h:330
const char * ggc_alloc_string(const char *contents, int length CXX_MEM_STAT_INFO)
Definition stringpool.cc:83
void init_stringpool(void)
Definition stringpool.cc:48
void finalize(void *p)
Definition ggc.h:175
void * ggc_alloc_atomic(size_t s CXX_MEM_STAT_INFO)
Definition ggc.h:259
#define ggc_test_and_set_mark(EXPR)
Definition ggc.h:81
T * ggc_alloc(ALONE_CXX_MEM_STAT_INFO)
Definition ggc.h:193
T * ggc_alloc_no_dtor(ALONE_CXX_MEM_STAT_INFO)
Definition ggc.h:209
T * ggc_cleared_vec_alloc(size_t c CXX_MEM_STAT_INFO)
Definition ggc.h:244
void ggc_delete(T *ptr)
Definition ggc.h:268
T * ggc_vec_alloc(size_t c CXX_MEM_STAT_INFO)
Definition ggc.h:231
void(*) gt_handle_reorder(void *, void *, gt_pointer_operator, void *)
Definition ggc.h:43
bool need_finalization_p()
Definition ggc.h:182
void gt_pch_n_S(const void *)
Definition stringpool.cc:217
const struct ggc_root_tab *const gt_ggc_deletable_rtab[]
T * ggc_cleared_alloc(ALONE_CXX_MEM_STAT_INFO)
Definition ggc.h:217
struct rtx_def * ggc_alloc_rtx_def_stat(size_t s CXX_MEM_STAT_INFO)
Definition ggc.h:324
gimple * ggc_alloc_cleared_gimple_statement_stat(size_t s CXX_MEM_STAT_INFO)
Definition ggc.h:342
void(*) gt_note_pointers(void *, void *, gt_pointer_operator, void *)
Definition ggc.h:35
ggc_collect
Definition ggc.h:285
@ GGC_COLLECT_FORCE
Definition ggc.h:287
@ GGC_COLLECT_HEURISTIC
Definition ggc.h:286
void(*) gt_pointer_walker(void *)
Definition ggc.h:62
void stringpool_statistics(void)
Definition stringpool.cc:149
const struct ggc_root_tab *const gt_ggc_rtab[]
const struct ggc_root_tab *const gt_pch_scalar_rtab[]
void gt_pch_n_S2(const void *, size_t)
Definition stringpool.cc:224
union tree_node * ggc_alloc_cleared_tree_node_stat(size_t s CXX_MEM_STAT_INFO)
Definition ggc.h:336
#define ALONE_CXX_MEM_STAT_INFO
Definition statistics.h:57
#define PASS_MEM_STAT
Definition statistics.h:54
#define CXX_MEM_STAT_INFO
Definition statistics.h:58
size_t stride
Definition ggc.h:69
void * base
Definition ggc.h:67
gt_pointer_walker pchw
Definition ggc.h:71
gt_pointer_walker cb
Definition ggc.h:70
size_t nelt
Definition ggc.h:68
#define NULL
Definition system.h:58