Re: [patch 3/3] [PATCH] prctl: Add PR_SET_MM codes to set up mm_struct entires v3

Cyrill Gorcunov
2011-12-12T22:05:25Z

On Tue, Dec 13, 2011 at 02:01:32AM +0400, Cyrill Gorcunov wrote:
...
> >
> > This may not be true of all compiler versions, but when I cache
> > current->mm in a local, the code size is reduced rather a lot:
> >
> > akpm:/usr/src/25> size kernel/sys.o
> > text data bss dec hex filename
> > 22685 14376 7616 44677 ae85 kernel/sys.o
> > 22489 14376 7616 44481 adc1 kernel/sys.o
> >
>
> Hmm, this is great and weird. Letme try...
>

Same here (gcc version 4.6.2 20111027)

text data bss dec hex filename
20829 14376 5736 40941 9fed kernel/sys.o
20682 14376 5736 40794 9f5a kernel/sys.o

thanks Andrew!

Cyrill