|
|
Hi,
This is a first tiny step towards custom marker routines. This patch
adds a footer to every GC-allocated object where its type tag is
stored. I've adopted http://gcc.gnu.org/ml/gcc/2004-01/msg01081.html
patch for this. For sanity check I've converted the single ggc_alloc()
in alias.c to use typed allocation.
Note that Boehm's GC has its own facilities for typed allocation, see
gc_typed.h. I've made a choice not to use them, but rather add my own
flag, because I hope this code might be reused not only for ggc-boehm.
Commited to the boehms-gc branch.
--
Laurynas
gcc-patch-gc-type-tag.patch
Description: Text Data
|
|