osprey/kg++fe/gnu/ggc-common.c File Reference

#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"

Include dependency graph for ggc-common.c:

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 ()
voidggc_alloc_cleared (size_t size)
voidggc_realloc (void *x, size_t size)
voidggc_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_statisticsggc_stats
static struct ggc_rootroots


Define Documentation

#define LABEL (  )     ((x) < 1024*10 ? ' ' : ((x) < 1024*1024*10 ? 'k' : 'M'))

Definition at line 216 of file ggc-common.c.

Referenced by ggc_print_statistics().

#define SCALE (  ) 

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 (  ) 

Definition at line 41 of file ggc-common.c.


Function Documentation

void ggc_add_root ( void base,
int  nelt,
int  size,
cb   
)

void* ggc_alloc_cleared ( size_t  size  ) 

Definition at line 147 of file ggc-common.c.

References buf, ggc_alloc, and memset.

void* ggc_calloc ( size_t  s1,
size_t  s2 
)

Definition at line 204 of file ggc-common.c.

Referenced by init_alias_analysis(), and init_reswords().

static int ggc_htab_delete ( void **  slot,
void info 
) [static]

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().

void ggc_mark_roots ( void   ) 

Definition at line 108 of file ggc-common.c.

Referenced by ggc_collect(), and ggc_collect_1().

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   ) 

Definition at line 339 of file ggc-common.c.

Referenced by init_ggc_heuristics().

void ggc_print_common_statistics ( FILE stream,
ggc_statistics stats 
)

Definition at line 219 of file ggc-common.c.

Referenced by ggc_print_statistics().

void* ggc_realloc ( void x,
size_t  size 
)

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().

void init_ggc_heuristics ( void   ) 

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]

static int ggc_htab_delete PARAMS ( (void **, void *)   )  [static]


Variable Documentation

Definition at line 45 of file ggc-common.c.

struct ggc_root* roots [static]

Definition at line 63 of file ggc-common.c.

Referenced by ggc_mark_roots().


Generated on Wed Apr 8 15:34:29 2009 for Open64 by  doxygen 1.5.6