This is the mail archive of the gcc@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]

Re: Speeding up GC


   From: Marc Espie <espie@nerim.net>
   Date: Tue, 4 Jun 2002 18:04:40 +0200

   1/ it may be prohibitively expensive on most OSes that implement it.
   
I don't question this.

   2/ Here, documentation of mprotect says:
   Not all implementations will guarantee protection on a page basis;
   the granularity of protection changes may be as large as an entire re-
   gion.
   
In reality, %99 of UNIX systems do page based granularity because so
many apps need it.  ELF shared libraries are challenging, at best, if
you don't do page based mprotect :-)

It's a moot point because I think the mprotect+SIGSEGV thing is stupid
from a performance standpoint anyways.


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