pike.git / src / array.c

version» Context lines:

pike.git/src/array.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: array.c,v 1.204 2008/05/01 21:44:32 mast Exp $ + || $Id: array.c,v 1.205 2008/05/02 04:15:09 mast Exp $   */      #include "global.h"   #include "svalue.h"   #include "array.h"   #include "object.h"   #include "las.h"   #include "stralloc.h"   #include "interpret.h"   #include "opcodes.h"
pike.git/src/array.c:2607:    else    gc_check_svalues(ITEM(a), a->size);    }    } GC_LEAVE;   }      void gc_mark_array_as_referenced(struct array *a)   {    if(gc_mark(a))    GC_ENTER (a, T_ARRAY) { +  if (Pike_in_gc == GC_PASS_COUNT_MEMORY) { +  gc_counted_bytes += sizeof (struct array) + +  (a->malloced_size - 1) * sizeof (struct svalue); +  gc_check_array (a); +  } +     if (a == gc_mark_array_pos)    gc_mark_array_pos = a->next;    if (a == gc_internal_array)    gc_internal_array = a->next;    else {    DOUBLEUNLINK (first_array, a);    DOUBLELINK (first_array, a); /* Linked in first. */    }       if (a->type_field & BIT_COMPLEX)