This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: [Patch] Updated version of emutramp_enabled_check() for PaX kernels
- From: Magnus Granberg <zorry at gentoo dot org>
- To: libffi-discuss at sourceware dot org
- Date: Wed, 22 May 2013 17:15 +0200
- Subject: Re: [Patch] Updated version of emutramp_enabled_check() for PaX kernels
- References: <1853145 dot Z13BOjesii at laptop1 dot gw dot ume dot nu> <CACxje59LrpV3CKd3i1yo3SRqfFXbMEy43=D3nde-TU==_ofYYA at mail dot gmail dot com>
onsdag 22 maj 2013 07.50.57 skrev Anthony Green:
> Hi Magnus,
>
> Reading /proc/self/status is a little more heavy weight than
> checking an environment variable. Do we really have to do this every
> time we call dlmmap(), or can we do it once
> and cache the result?
>
> Thanks,
>
> AG
Would be fine to cache the result.
/Magnus