Applied heap walk function (renamed to GC_apply_to_each_live_object) patch from here: http://www.hpl.hp.com/hosted/linux/mail-archives/gc/2005-January/000717.html