主权项 |
1. A method for allocating memory on a multi-core processing system, the method comprising:
receiving a first allocation of a first memory space of system memory of the multi-core processing system at a first software module, wherein the first allocation of the first memory space globally locks the first memory space; receiving a first request for locally locking a first portion of memory, wherein the first portion of memory is of a size that corresponds to a memory size that spans a range of memory addresses from a first starting memory address; locking the first portion of memory with a first local lock, wherein the first portion of memory includes memory addresses in the first memory space; and storing the first starting memory address in a first entry of a data structure. |