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] | |
And this is a surprise in what way?Try to count the number of times the array is grown (IE we don't get the size exactly right for the entire lifetime). Now, note the use of ggc_realloc in varray.c
Then look at what ggc_realloc does in ggc-common.c.
Now count the number of times the array is grown again, and cry.
Without a completely new set of data structures this is exactly what I would expect when I don't know how big of an array I'm going to need.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |