language-icon Old Web
English
Sign In

A kind of memory release method

2017 
The invention provides a kind of memory release method, discharged applied to the internal memory distributed internal memory continuous dispensing device, wherein, page to be released and adjacent free page are combined into a memory block and obtain exponent number=k=1 of current memory block, and export current exponent number to internal memory continuous dispensing device, comprise the following steps:Step S1,2 with current memory block adjacent sequential are judged whether k The free page of page;If so, perform step S2;If it is not, application heap release is finished and exited;Step S2, the 2 of acquisition and current memory block adjacent sequential k The free page of page;Step S3, the free page obtained in step S2 and current memory block are merged, to form a memory block, makes the exponent number+1 of the memory block of formation, k=k+1, and return to step S1.The beneficial effect of its technical scheme is, it is to be discharged one by one to overcome CMA internal memories release in the prior art, when the larger release of amount of memory time-consuming longer, is less efficient the defects of.
    • Correction
    • Source
    • Cite
    • Save
    • Machine Reading By IdeaReader
    0
    References
    0
    Citations
    NaN
    KQI
    []