发明名称 USER CONTROL OF MULTIPLE MEMORY HEAPS
摘要 The present invention provides the user with the ability to control and administer the supply of memory managed in multiple heaps by a library heap management facility. The control data used by the heap management facility is located in the user-supplied memory. Heaps are created dynamically through calls from the application to the runtime library. Allocation within a heap is performed through calls to the runtime library that canvass the available heap memory for each allocation request. If no suitable block of heap memory is located, additional user supplied memory is requested for the application through a callback function. A second callback function notifies the user when a supplied unit of memory is no longer required by the heap and may he disposed of. The callback functions are specified separately for each heap. The invention also provides the user with means for setting the default heap in the runtime library for use by allocation requests from a vendor library that do not specify a heap. This can be done on a per thread basis in multithreaded applications so that different executing threads can use different default heaps in a non-interfering manner.
申请公布号 CA2136154(C) 申请公布日期 1999.08.24
申请号 CA19942136154 申请日期 1994.11.18
申请人 发明人 BENAYON, JAY WILLIAM;THOMSON, BRIAN W.
分类号 G06F9/50;(IPC1-7):G06F12/02 主分类号 G06F9/50
代理机构 代理人
主权项
地址