#include "config.h"#include "system.h"#include "rtl.h"#include "tree.h"#include "tm_p.h"#include "hashtab.h"#include "varray.h"#include "ggc.h"#include "langhooks.h"#include "params.h"

Go to the source code of this file.
Data Types | |
| type | ggc_root |
Defines | |
| #define | VALGRIND_DISCARD(x) |
| #define | SCALE(x) |
| #define | LABEL(x) ((x) < 1024*10 ? ' ' : ((x) < 1024*1024*10 ? 'k' : 'M')) |
Functions/Subroutines | |
| static int ggc_htab_delete | PARAMS ((void **, void *)) |
| static double ggc_rlimit_bound | PARAMS ((double)) |
| void | ggc_add_root (void *base, int nelt, int size, cb) |
| static int | ggc_htab_delete (void **slot, void *info) |
| void | ggc_mark_roots () |
| void * | ggc_alloc_cleared (size_t size) |
| void * | ggc_realloc (void *x, size_t size) |
| void * | ggc_calloc (size_t s1, size_t s2) |
| void | ggc_print_common_statistics (FILE *stream, ggc_statistics *stats) |
| static double | ggc_rlimit_bound (double limit) |
| int | ggc_min_expand_heuristic () |
| int | ggc_min_heapsize_heuristic () |
| void | init_ggc_heuristics () |
Variables | |
| static ggc_statistics * | ggc_stats |
| static struct ggc_root * | roots |
| #define LABEL | ( | x | ) | ((x) < 1024*10 ? ' ' : ((x) < 1024*1024*10 ? 'k' : 'M')) |
| #define SCALE | ( | x | ) |
Value:
((unsigned long) ((x) < 1024*10 \ ? (x) \ : ((x) < 1024*1024*10 \ ? (x) / 1024 \ : (x) / (1024*1024))))
Definition at line 211 of file ggc-common.c.
Referenced by dump_cfg_stats(), dump_dfa_stats(), ggc_print_common_statistics(), ggc_print_statistics(), and ht_dump_statistics().
| #define VALGRIND_DISCARD | ( | x | ) |
Definition at line 41 of file ggc-common.c.
Definition at line 72 of file ggc-common.c.
References ggc_root::base, ggc_root::nelt, ggc_root::next, ggc_root::size, x, and xmalloc().
Referenced by dw2_force_const_mem(), ffecom_init_decl_processing(), ffewhere_file_new(), init_jcf_parse(), init_stringpool(), objc_act_parse_init(), pa_add_gc_roots(), rs6000_add_gc_roots(), and sparc_add_gc_roots().
Definition at line 204 of file ggc-common.c.
Referenced by init_alias_analysis(), and init_reswords().
Definition at line 91 of file ggc-common.c.
References ggc_cache_tab::base, ggc_cache_tab::cb, htab_clear_slot(), ggc_cache_tab::marked_p, and r.
Referenced by ggc_mark_roots().
| int ggc_min_expand_heuristic | ( | void | ) |
Definition at line 320 of file ggc-common.c.
Referenced by ggc_min_heapsize_heuristic(), and init_ggc_heuristics().
| int ggc_min_heapsize_heuristic | ( | void | ) |
| void ggc_print_common_statistics | ( | FILE * | stream, | |
| ggc_statistics * | stats | |||
| ) |
Definition at line 157 of file ggc-common.c.
References ggc_alloc, ggc_get_size(), memcpy, NULL, r, and VALGRIND_DISCARD.
| static double ggc_rlimit_bound | ( | double | limit | ) | [static] |
Definition at line 290 of file ggc-common.c.
References getrlimit().
Referenced by ggc_min_expand_heuristic(), and ggc_min_heapsize_heuristic().
Definition at line 358 of file ggc-common.c.
Referenced by general_init(), and parse_options_and_default_flags().
| static double ggc_rlimit_bound PARAMS | ( | (double) | ) | [static] |
ggc_statistics* ggc_stats [static] |
Definition at line 45 of file ggc-common.c.
1.5.6