osprey-gcc/gcc/ggc.h File Reference

#include "statistics.h"
#include "gtype-desc.h"

Include dependency graph for ggc.h:

Go to the source code of this file.

Data Types

type  ggc_root_tab
type  ggc_cache_tab
type  ggc_statistics

Defines

#define digit_string(d)   (digit_vector + ((d) * 2))
#define LAST_GGC_ROOT_TAB   { NULL, 0, 0, NULL, NULL }
#define LAST_GGC_CACHE_TAB   { NULL, 0, 0, NULL, NULL, NULL }
#define ggc_test_and_set_mark(EXPR)   ((EXPR) != NULL && ((void *) (EXPR)) != (void *) 1 && ! ggc_set_mark (EXPR))
#define ggc_mark(EXPR)
#define ggc_alloc(s)   ggc_alloc_stat (s MEM_STAT_INFO)
#define ggc_alloc_zone(s, z)   ggc_alloc_zone_stat (s,z MEM_STAT_INFO)
#define ggc_alloc_typed(s, z)   ggc_alloc_typed_stat (s,z MEM_STAT_INFO)
#define ggc_alloc_cleared(s)   ggc_alloc_cleared_stat (s MEM_STAT_INFO)
#define ggc_alloc_cleared_zone(s, z)   ggc_alloc_cleared_stat (s,z MEM_STAT_INFO)
#define ggc_realloc(s, z)   ggc_realloc_stat (s,z MEM_STAT_INFO)
#define GGC_NEW(T)   ((T *) ggc_alloc (sizeof (T)))
#define GGC_CNEW(T)   ((T *) ggc_alloc_cleared (sizeof (T)))
#define GGC_NEWVEC(T, N)   ((T *) ggc_alloc ((N) * sizeof(T)))
#define GGC_CNEWVEC(T, N)   ((T *) ggc_alloc_cleared ((N) * sizeof(T)))
#define GGC_NEWVAR(T, S)   ((T *) ggc_alloc ((S)))
#define GGC_CNEWVAR(T, S)   ((T *) ggc_alloc_cleared ((S)))
#define ggc_alloc_rtvec(NELT)
#define ggc_alloc_tree(LENGTH)   ((tree) ggc_alloc_zone (LENGTH, tree_zone))
#define htab_create_ggc(SIZE, HASH, EQ, DEL)   htab_create_alloc (SIZE, HASH, EQ, DEL, ggc_calloc, NULL)
#define splay_tree_new_ggc(COMPARE)
#define ggc_strdup(S)   ggc_alloc_string((S), -1)

Typedefs

typedef void(* gt_pointer_operator )(void *, void *)
typedef void(* gt_note_pointers )(void *, void *, gt_pointer_operator, void *)
typedef void(* gt_handle_reorder )(void *, void *, gt_pointer_operator, void *)
typedef void(* gt_pointer_walker )(void *)

Functions/Subroutines

int gt_pch_note_object (void *, void *, gt_note_pointers)
void gt_pch_note_reorder (void *, void *, gt_handle_reorder)
int ggc_set_mark (const void *)
int ggc_marked_p (const void *)
void ggc_mark_stringpool (void)
void ggc_mark_roots (void)
void gt_pch_save_stringpool (void)
void gt_pch_fixup_stringpool (void)
void gt_pch_restore_stringpool (void)
void gt_pch_p_S (void *, void *, gt_pointer_operator, void *)
void gt_pch_n_S (const void *)
void gt_ggc_m_S (void *)
void init_stringpool (void)
void init_ggc (void)
struct alloc_zonenew_ggc_zone (const char *)
void destroy_ggc_zone (struct alloc_zone *)
void ggc_push_context (void)
void ggc_pop_context (void)
struct ggc_pch_datainit_ggc_pch (void)
void ggc_pch_count_object (struct ggc_pch_data *, void *, size_t, bool)
size_t ggc_pch_total_size (struct ggc_pch_data *)
void ggc_pch_this_base (struct ggc_pch_data *, void *)
char * ggc_pch_alloc_object (struct ggc_pch_data *, void *, size_t, bool)
void ggc_pch_prepare_write (struct ggc_pch_data *, FILE *)
void ggc_pch_write_object (struct ggc_pch_data *, FILE *, void *, void *, size_t, bool)
void ggc_pch_finish (struct ggc_pch_data *, FILE *)
void ggc_pch_read (FILE *, void *)
voidggc_alloc_stat (size_t MEM_STAT_DECL)
voidggc_alloc_zone_stat (size_t, struct alloc_zone *MEM_STAT_DECL)
voidggc_alloc_typed_stat (enum gt_types_enum, size_t MEM_STAT_DECL)
voidggc_alloc_cleared_stat (size_t MEM_STAT_DECL)
voidggc_alloc_cleared_zone (size_t, struct alloc_zone *MEM_STAT_DECL)
voidggc_realloc_stat (void *, size_t MEM_STAT_DECL)
voidggc_calloc (size_t, size_t)
void ggc_free (void *)
void ggc_record_overhead (size_t, size_t, void *MEM_STAT_DECL)
void ggc_free_overhead (void *)
void ggc_prune_overhead_list (void)
void dump_ggc_loc_statistics (void)
voidggc_splay_alloc (int, void *)
void ggc_splay_dont_free (void *, void *)
const char * ggc_alloc_string (const char *contents, int length)
void ggc_collect (void)
size_t ggc_get_size (const void *)
void gt_pch_save (FILE *f)
void gt_pch_restore (FILE *f)
void ggc_print_common_statistics (FILE *, ggc_statistics *)
void ggc_print_statistics (void)
void stringpool_statistics (void)
int ggc_min_expand_heuristic (void)
int ggc_min_heapsize_heuristic (void)
void init_ggc_heuristics (void)

Variables

const char empty_string []
const char digit_vector []
struct ggc_root_tab *const gt_ggc_rtab []
struct ggc_root_tab *const gt_ggc_deletable_rtab []
struct ggc_root_tab *const gt_pch_cache_rtab []
struct ggc_root_tab *const gt_pch_scalar_rtab []
struct ggc_cache_tab *const gt_ggc_cache_rtab []
struct alloc_zonegarbage_zone
struct alloc_zonertl_zone
struct alloc_zonetree_zone
bool ggc_force_collect


Define Documentation

#define digit_string ( d   )     (digit_vector + ((d) * 2))

Definition at line 32 of file ggc.h.

#define ggc_alloc (  )     ggc_alloc_stat (s MEM_STAT_INFO)

Definition at line 217 of file ggc.h.

Referenced by add_case_node(), add_ehl_entry(), add_immediate_use(), add_pending_init(), add_stmt_to_eh_region(), allocate_def_optype(), allocate_phi_node(), allocate_use_optype(), allocate_v_may_def_optype(), allocate_v_must_def_optype(), allocate_vuse_optype(), assemble_alias(), assign_386_stack_local(), assign_stack_temp_for_type(), binding_table_new(), bitmap_element_allocate(), bitmap_initialize(), build_constant_desc(), build_omp_clause(), build_real(), c_dup_lang_specific_decl(), c_push_function_context(), cgraph_create_edge(), check_format_info_main(), copy_lang_decl(), copy_lang_type(), cp_lexer_new_main(), create_constant_pool(), create_function_ann(), create_stmt_ann(), create_tree_ann(), create_var_ann(), cxx_dup_lang_specific_decl(), decl_debug_expr_insert(), decl_init_priority_insert(), decl_restrict_base_insert(), decl_value_expr_insert(), duplicate_eh_regions_1(), duplicate_ssa_name(), duplicate_ssa_name_ptr_info(), expand_fixup(), expand_label(), feed_input(), ffecom_save_tree_forever(), ffewhere_file_new(), finish_struct(), force_const_mem(), get_deferred_plabel(), get_func_hard_reg_initial_val(), get_hard_reg_initial_val(), get_mem_attrs(), get_noswitch_section(), get_plabel(), get_ptr_info(), get_reg_attrs(), get_section(), get_unnamed_section(), ggc_alloc_cleared(), ggc_realloc(), ggc_splay_alloc(), GTY(), heapvar_insert(), init_emit(), init_expr(), init_stmt_for_function(), init_varasm_status(), insn_divmod_values_to_profile(), insns_for_mem_walk(), lambda_body_vector_new(), lambda_lattice_new(), lambda_loopnest_new(), lambda_matrix_new(), lambda_trans_matrix_new(), m32r_encode_section_info(), machopic_indirection_name(), make_binding_level(), mips_output_external(), new_convert_optab(), new_cselib_val(), new_elt_loc_list(), new_optab(), output_constant_def(), output_toc(), push_range_stack(), record_constant_rtx(), record_range(), replace_uses_equiv_to_x_with_y(), rtl_gen_const_delta_profiler(), save_function_data(), schedule_fixup_var_refs(), score_output_external(), set_named_section_flags(), stringpool_ggc_alloc(), tree_divmod_values_to_profile(), tree_predict_edge(), tsi_link_after(), tsi_link_before(), type_hash_add(), and use_label().

#define ggc_alloc_cleared (  )     ggc_alloc_cleared_stat (s MEM_STAT_INFO)

#define ggc_alloc_cleared_zone ( s,
 )     ggc_alloc_cleared_stat (s,z MEM_STAT_INFO)

Definition at line 229 of file ggc.h.

#define ggc_alloc_rtvec ( NELT   ) 

Value:

((rtvec) ggc_alloc_typed (gt_ggc_e_9rtvec_def, sizeof (struct rtvec_def) \
          + ((NELT) - 1) * sizeof (rtx)))

Definition at line 252 of file ggc.h.

#define ggc_alloc_tree ( LENGTH   )     ((tree) ggc_alloc_zone (LENGTH, tree_zone))

Definition at line 256 of file ggc.h.

#define ggc_alloc_typed ( s,
 )     ggc_alloc_typed_stat (s,z MEM_STAT_INFO)

Definition at line 223 of file ggc.h.

#define ggc_alloc_zone ( s,
 )     ggc_alloc_zone_stat (s,z MEM_STAT_INFO)

Definition at line 220 of file ggc.h.

Referenced by create_block_symbol().

#define GGC_CNEW ( T   )     ((T *) ggc_alloc_cleared (sizeof (T)))

#define GGC_CNEWVAR ( T,
S   )     ((T *) ggc_alloc_cleared ((S)))

Definition at line 250 of file ggc.h.

Referenced by retrofit_lang_decl().

#define GGC_CNEWVEC ( T,
 )     ((T *) ggc_alloc_cleared ((N) * sizeof(T)))

Definition at line 248 of file ggc.h.

Referenced by binding_table_construct(), c_parse_init(), init_reswords(), and lambda_vector_new().

#define ggc_mark ( EXPR   ) 

Value:

do {            \
    const void *const a__ = (EXPR);   \
    if (a__ != NULL && a__ != (void *) 1) \
      ggc_set_mark (a__);     \
  } while (0)

Definition at line 101 of file ggc.h.

#define GGC_NEW ( T   )     ((T *) ggc_alloc (sizeof (T)))

#define GGC_NEWVAR ( T,
S   )     ((T *) ggc_alloc ((S)))

Definition at line 249 of file ggc.h.

Referenced by copy_lang_type(), cxx_dup_lang_specific_decl(), finish_struct(), and finish_struct_1().

#define GGC_NEWVEC ( T,
 )     ((T *) ggc_alloc ((N) * sizeof(T)))

Definition at line 247 of file ggc.h.

Referenced by cp_lexer_new_main().

#define ggc_realloc ( s,
 )     ggc_realloc_stat (s,z MEM_STAT_INFO)

#define ggc_strdup ( S   )     ggc_alloc_string((S), -1)

Definition at line 274 of file ggc.h.

#define ggc_test_and_set_mark ( EXPR   )     ((EXPR) != NULL && ((void *) (EXPR)) != (void *) 1 && ! ggc_set_mark (EXPR))

Definition at line 98 of file ggc.h.

#define htab_create_ggc ( SIZE,
HASH,
EQ,
DEL   )     htab_create_alloc (SIZE, HASH, EQ, DEL, ggc_calloc, NULL)

Definition at line 258 of file ggc.h.

#define LAST_GGC_CACHE_TAB   { NULL, 0, 0, NULL, NULL, NULL }

Definition at line 92 of file ggc.h.

#define LAST_GGC_ROOT_TAB   { NULL, 0, 0, NULL, NULL }

Definition at line 75 of file ggc.h.

#define splay_tree_new_ggc ( COMPARE   ) 

Value:

Definition at line 261 of file ggc.h.

Referenced by GTY(), and ipa_init().


Typedef Documentation

Definition at line 53 of file ggc.h.

Definition at line 45 of file ggc.h.

typedef void(* gt_pointer_operator)(void *, void *)

Definition at line 38 of file ggc.h.

typedef void(* gt_pointer_walker)(void *)

Definition at line 64 of file ggc.h.


Function Documentation

void destroy_ggc_zone ( struct alloc_zone  ) 

Definition at line 943 of file ggc-zone.c.

void dump_ggc_loc_statistics ( void   ) 

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

void* ggc_alloc_cleared_stat ( size_t  MEM_STAT_DECL  ) 

void* ggc_alloc_cleared_zone ( size_t  ,
struct alloc_zone MEM_STAT_DECL 
)

void* ggc_alloc_stat ( size_t  MEM_STAT_DECL  ) 

const char* ggc_alloc_string ( const char *  contents,
int  length 
)

Definition at line 86 of file stringpool.c.

void* ggc_alloc_typed_stat ( enum  gt_types_enum,
size_t  MEM_STAT_DECL 
)

void* ggc_alloc_zone_stat ( size_t  ,
struct alloc_zone MEM_STAT_DECL 
)

void* ggc_calloc ( size_t  ,
size_t   
)

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

void ggc_collect ( void   ) 

Definition at line 1705 of file ggc-page.c.

void ggc_free ( void  ) 

Definition at line 72 of file ggc-none.c.

void ggc_free_overhead ( void  ) 

Referenced by ggc_free().

size_t ggc_get_size ( const void  ) 

Definition at line 1318 of file ggc-page.c.

void ggc_mark_roots ( void   ) 

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

void ggc_mark_stringpool ( void   ) 

Definition at line 171 of file stringpool.c.

Referenced by ggc_mark_roots().

int ggc_marked_p ( const void  ) 

Definition at line 1295 of file ggc-page.c.

int ggc_min_expand_heuristic ( void   ) 

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

int ggc_min_heapsize_heuristic ( void   ) 

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

char* ggc_pch_alloc_object ( struct ggc_pch_data ,
void ,
size_t  ,
bool   
)

void ggc_pch_count_object ( struct ggc_pch_data ,
void ,
size_t  ,
bool   
)

void ggc_pch_finish ( struct ggc_pch_data ,
FILE  
)

Definition at line 2244 of file ggc-page.c.

void ggc_pch_prepare_write ( struct ggc_pch_data ,
FILE  
)

Definition at line 2271 of file ggc-zone.c.

void ggc_pch_read ( FILE ,
void  
)

Definition at line 2302 of file ggc-page.c.

void ggc_pch_this_base ( struct ggc_pch_data ,
void  
)

Definition at line 2150 of file ggc-page.c.

size_t ggc_pch_total_size ( struct ggc_pch_data  ) 

Definition at line 2139 of file ggc-page.c.

void ggc_pch_write_object ( struct ggc_pch_data ,
FILE ,
void ,
void ,
size_t  ,
bool   
)

void ggc_pop_context ( void   ) 

void ggc_print_common_statistics ( FILE ,
ggc_statistics  
)

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

void ggc_print_statistics ( void   ) 

Definition at line 1759 of file ggc-page.c.

void ggc_prune_overhead_list ( void   ) 

Referenced by ggc_collect(), and ggc_collect_1().

void ggc_push_context ( void   ) 

void* ggc_realloc_stat ( void ,
size_t  MEM_STAT_DECL 
)

void ggc_record_overhead ( size_t  ,
size_t  ,
void MEM_STAT_DECL 
)

int ggc_set_mark ( const void  ) 

Definition at line 1259 of file ggc-page.c.

void* ggc_splay_alloc ( int  ,
void  
)

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

void ggc_splay_dont_free ( void ,
void  
)

void gt_ggc_m_S ( void  ) 

void gt_pch_fixup_stringpool ( void   ) 

Definition at line 238 of file stringpool.c.

Referenced by gt_pch_save().

void gt_pch_n_S ( const void  ) 

Definition at line 198 of file stringpool.c.

int gt_pch_note_object ( void ,
void ,
gt_note_pointers   
)

void gt_pch_note_reorder ( void ,
void ,
gt_handle_reorder   
)

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

void gt_pch_p_S ( void ,
void ,
gt_pointer_operator  ,
void  
)

void gt_pch_restore ( FILE f  ) 

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

void gt_pch_restore_stringpool ( void   ) 

Definition at line 246 of file stringpool.c.

Referenced by gt_pch_restore().

void gt_pch_save ( FILE f  ) 

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

void gt_pch_save_stringpool ( void   ) 

Referenced by gt_pch_save().

void init_ggc ( void   ) 

Definition at line 1262 of file ggc-page.c.

void init_ggc_heuristics ( void   ) 

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

struct ggc_pch_data* init_ggc_pch ( void   )  [read]

Definition at line 2115 of file ggc-page.c.

void init_stringpool ( void   ) 

Definition at line 63 of file stringpool.c.

struct alloc_zone* new_ggc_zone ( const char *   )  [read]

Definition at line 932 of file ggc-zone.c.

void stringpool_statistics ( void   ) 

Definition at line 158 of file stringpool.c.


Variable Documentation

const char digit_vector[]

Definition at line 49 of file stringpool.c.

const char empty_string[]

Definition at line 45 of file stringpool.c.

Definition at line 37 of file ggc-none.c.

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

Definition at line 97 of file gtype-c.h.

Definition at line 86 of file gtype-c.h.

Definition at line 52 of file gtype-c.h.

Referenced by gt_pch_restore(), and gt_pch_save().

Referenced by gt_pch_restore(), and gt_pch_save().


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