Method of recognizing fixed and variable sized data objects in memory
AssigneeInternational Business Machines Corporation
InventorsJay William Benayon, Brian Ward Thomson
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorsJay William Benayon, Brian Ward Thomson
Estimating the term…
A method for recognizing fixed size objects and allocating and freeing fixed size data objects in a multiple heap system. The method utilizes a page based structure for allocating fixed size objects. A page or pool of pages is provided for each predetermined object size. Each page includes a reserved area for storing heap handle and object size information which is common to all the objects of the predetermined size for the page. Allocation and de-allocation requests are performed based on the object size. The reserved area in the page includes a recognizable sanity value and the object size for the page. The sanity value denotes a fixed size object. The reserved area also stores two pointers to keep track of a linked list of available and free objects. The remainder of the page is used for the objects. For a de-allocation request, the page containing the object is determined from the address of the object.
A method for freeing fixed and variable size objects in response to a runtime free request from a user application executing in an operating system having a runtime library specifying the address of the object in memory, the object having been previously allocated in a memory heap, said method comprising the steps of:
In a data processing system having multiple memory heaps, wherein said heap includes a pool page structure for storing fixed size objects, said pool page structure comprising:
Data storage media recorded with a computer program which, in combination with a general purpose computer loaded with an operating system and runtime library means, and equipped to read into memory and execute program data from the data storage media, comprises a method for freeing fixed and variable size objects in response to a runtime free request from a user application executing in said operating system wherein said runtime library means specifies the address of the object in memory, the object having been previously allocated in a memory heap, said method including the steps of:
Dependencies are inferred from the claim text.