摘要 |
<p>It is described a method and a controller for managing physical memory (103) of a data storage (101), in particular a heap, the method comprising: requesting (113) a memory portion having a memory portion size; identifying a pool (i0, i1, i2, i3), wherein the pool is provided for storing at least one access information (ai1, ai2, ai3, ai4, ai5, ai6, ai7) indicative of an address (a1, a2, a3, a4, a5, a6, a7) of a memory block (m1, m2, m3, m4, m5, m6, m7) of the data storage (101), the memory block having a memory block size equal to or larger than the memory portion size; determining whether the access information is stored in the pool; if the access information is stored in the pool, returning (117) address data (a1, a2, a3, a4, a5, a6, a7) of the memory block (m1, m2, m3, m4, m5, m6, m7), wherein the address data are based on the access information (ai1, ai2, ai3, ai4, ai5, ai6, ai7) and removing the access information (ai1, ai2, ai3, ai4, ai5, ai6, ai7) from the pool (i0, i1, i2, i3); if the access information is not stored in the pool, creating the access information (ai1, ai2, ai3, ai4, ai5, ai6, ai7), and returning (117) address data (a1, a2, a3, a4, a5, a6, a7) of the memory block (m1, m2, m3, m4, m5, m6, m7).</p> |