core/heap.c
/* Sets the vector data for the lookup vector used by the special heap */
Sets the vector data for the lookup vector used by the special heap
Sets the vector data for the lookup vector used by the special heap
void
special_heap_set_vector_data(void *special, void *vector_data)
{
    special_units_t *su = (special_units_t *) special;
    special_heap_unit_t *u;
    ASSERT(su->heap_areas != NULL);
    for (u = su->top_unit; u != NULL; u = u->next) {
        vmvector_modify_data(su->heap_areas, u->alloc_pc,
                             u->reserved_end_pc, vector_data);
    }
}
void special_heap_set_vector_data ( void * special , void * vector_data ) { special_units_t * su = ( special_units_t * ) special ; special_heap_unit_t * u ; ASSERT ( su -> heap_areas != NULL ) ; for ( u = su -> top_unit ; u != NULL ; u = u -> next ) { vmvector_modify_data ( su -> heap_areas , u -> alloc_pc , u -> reserved_end_pc , vector_data ) ; } }
Sets the vector data for the lookup vector used by the special heap
Sets the vector data for the lookup vector used by the special heap
/* FIXME: more efficient to walk the vector, but no interface
     * to set the data: we'd need to expose the iterator index or
     * the vmarea struct rather than than the clean copy we have now
     */