This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Date: Sat, 22 Feb 2003 21:29:54 +0100 From: Josef Zlomek <zlomj9am at artax dot karlin dot mff dot cuni dot cz>
So its better to split the array of structures to 2 arrays, right? GTY machinery would be used for one of them (the main one), the second (auxiliary) one will not be marked.
I doubt it. Why can't the whole array be in GCed memory?
static void gt_ggc_ma_decl_loc_table PARAMS ((void *));
static void
gt_ggc_ma_decl_loc_table (x_p)
void *x_p ATTRIBUTE_UNUSED;
{
if (decl_loc_table != NULL) {
size_t i0;
ggc_mark (decl_loc_table);
for (i0 = 0; i0 < (size_t)(decl_loc_table_allocated); i0++) {
gt_ggc_m_12var_loc_node (decl_loc_table[i0].first);
gt_ggc_m_12var_loc_node (decl_loc_table[i0].last);
}
}
}-- - Geoffrey Keating <geoffk at geoffk dot org>
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |