VirtualBox

Changeset 1866 in kBuild


Ignore:
Timestamp:
Oct 15, 2008 1:11:41 AM (16 years ago)
Author:
bird
Message:

kmk/incdep: don't allocate nameseq records, there will be a whole lot of them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/incdep.c

    r1865 r1866  
    209209static pthread_t incdep_threads[1];
    210210static struct alloccache incdep_dep_caches[1];
    211 static struct alloccache incdep_nameseq_caches[1];
    212211
    213212#elif defined (WINDOWS32)
    214213static HANDLE incdep_threads[2];
    215214static struct alloccache incdep_dep_caches[2];
    216 static struct alloccache incdep_nameseq_caches[2];
    217215
    218216#elif defined (__OS2__)
    219217static TID incdep_threads[2];
    220218static struct alloccache incdep_dep_caches[2];
    221 static struct alloccache incdep_nameseq_caches[2];
    222219#endif
    223220static unsigned incdep_num_threads;
     
    295292  free (ptr);
    296293  (void)cur;
    297 }
    298 
    299 /* alloc a nameseq structure.  */
    300 struct nameseq *
    301 incdep_alloc_nameseq (struct incdep *cur)
    302 {
    303   struct alloccache *cache;
    304   if (cur->worker_tid != -1)
    305     cache = &incdep_nameseq_caches[cur->worker_tid];
    306   else
    307     cache = &nameseq_cache;
    308   return alloccache_calloc (cache);
    309294}
    310295
     
    650635      alloccache_init (&incdep_dep_caches[i], sizeof(struct dep), "incdep dep",
    651636                       incdep_cache_allocator, (void *)i);
    652       alloccache_init (&incdep_nameseq_caches[i], sizeof(struct nameseq),
    653                        "incdep nameseq", incdep_cache_allocator, (void *)i);
    654637
    655638#ifdef HAVE_PTHREAD
     
    714697
    715698      alloccache_join (&dep_cache, &incdep_dep_caches[i]);
    716       alloccache_join (&nameseq_cache, &incdep_nameseq_caches[i]);
    717699    }
    718700  incdep_num_threads = 0;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette