Allocating memory to free space in a cache

    公开(公告)号:GB2456924A

    公开(公告)日:2009-08-05

    申请号:GB0904430

    申请日:2009-03-16

    Applicant: IBM

    Abstract: The cache 20 in a computer system is divided into storage elements 24, which may be smaller than a cache line 22. Each storage element has a flag 33 which indicates whether the element is available for allocation. When a program 38 running on the processor requests the allocation of memory in the heap, the system firmware 36 identifies whether there is a contiguous block of storage elements, which is large enough to satisfy the memory request and is available for allocation. If so, the flags are set to indicate that the storage elements are no longer available and the memory block which corresponds to the storage elements is returned. When the program frees the data from the heap, the flags are cleared to indicate that the storage elements are now available.

Patent Agency Ranking