Branch: Tag:

2018-05-19

2018-05-19 14:43:13 by Tobias S. Josefowitz <tobij@tobij.de>

GC: Inline GC marker struct into memory object structs

This avoids unnecessary padding while keeping mostly compatible to most
other users of these structs and markers.

262:   ATTRIBUTE((malloc))   PMOD_EXPORT struct pike_type * alloc_pike_type(void) {    struct pike_type *t = ba_alloc(&type_allocator); -  gc_init_marker(&t->m); +  gc_init_marker(t);    return t;   }   
559:    debug_malloc_pass(t = ba_alloc(&type_allocator));       t->refs = 0; -  gc_init_marker(&t->m); +  gc_init_marker(t);    add_ref(t); /* For DMALLOC... */    t->type = type;    t->flags = 0;