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]

Re: PATCH: new GC implementation


>>>>> "Andi" == Andi Kleen <ak@muc.de> writes:

    Andi> Erm. Of course Linux zeroes all pages it hands to user
    Andi> processes. Otherwise that would be a gapping security
    Andi> hole. So mapping /dev/zero and anonymous mappings should be
    Andi> equivalent, both will zero lazily. You can probably remove
    Andi> the special case for Linux.

Trust us; we ran profilers.  It makes a very significant difference.
I suspect that Linux is clever enough to hand back pages most recently
used by processes with the same UID or some such; there is definitely
a significant win.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


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