On 01/04/2013 02:12 PM, Zhouping Liu wrote:
> create_same_memory() was too large and contained lots of duplicated codes,
> and it's a little hard-coding, so that it's not easy to read and
> extend it for new case.
>
> I splited it for five sub-functions:
>
> ksm_child_memset();
> create_ksm_child();
> stop_ksm_children();
> resume_ksm_children();
> create_smae_memory();
>
> Also I intruduced a data struct to control the mergeable data:
>
> struct ksm_merge_data {
> char data;
> int mergeable_size;
> };
>
> Signed-off-by: Zhouping Liu <[email protected]>
Applied, thank you.
Wanlong Gao
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list