One or more electronically-accessible media including exemplary
electronically-executable instructions that, when executed, direct an
electronic apparatus to perform actions including: ascertaining, from
multiple processors, a processor on which a requesting thread is
executing; each processor of the multiple processors associated with each
respective heap of multiple respective heaps; and selecting, for a memory
allocation to the requesting thread, a respective heap that is associated
with the processor on which the requesting thread is executing responsive
to the action of ascertaining. An exemplary apparatus includes: at least
one memory having multiple memory portions; multiple processors coupled
to the at least one memory, each respective processor of the multiple
processors executing a respective thread of multiple threads; and a
memory allocator adapted to allocate memory resources from a memory
portion of the multiple memory portions to each respective thread
responsive to the respective processor on which each respective thread is
executing.