gcc-patches@gcc.gnu.org
[Top] [All Lists]

[boehm-gc] Add type information for GC-allocated objects

Subject: [boehm-gc] Add type information for GC-allocated objects
From: "Laurynas Biveinis"
Date: Sun, 13 Aug 2006 18:06:07 +0300
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

Attachment: gcc-patch-gc-type-tag.patch
Description: Text Data

<Prev in Thread] Current Thread [Next in Thread>
  • [boehm-gc] Add type information for GC-allocated objects, Laurynas Biveinis <=