This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Never collect the PCH zone


This patch attempts to speed up GC by not sweeping the PCH zone.
Unluckily there's not much to optimize until zone-at-a-time marking
is there, because the PCH zone's pointers will still be marked
and the marks will have to be cleared.

It also fixes an apparent thinko in the (unused) destroy_ggc_zone.

Bootstrapped/regtested i686-pc-linux-gnu, ok for mainline?

Paolo

2004-05-01 Paolo Bonzini <bonzini@gnu.org>

   * ggc.h (new_persistent_ggc_zone): New prototype.
   * ggc-page.c (new_persistent_ggc_zone): New stub.
   * ggc-zone.c (struct alloc_zone): Add persistent field.
   (new_persistent_ggc_zone): New function.
   (destroy_ggc_zone): Refuse to destroy a persistent zone.
   Fix thinko.
   (ggc_pch_read): Initialize it.
   (ggc_collect_1): Do not collect persistent zones.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]