发明授权
- 专利标题: Preemptive memory-block splitting
- 专利标题(中): 抢占式内存块分裂
-
申请号: US10103637申请日: 2002-03-21
-
公开(公告)号: US06842838B2公开(公告)日: 2005-01-11
- 发明人: Steven K. Heller , David L. Detlefs , Ross C. Knippel
- 申请人: Steven K. Heller , David L. Detlefs , Ross C. Knippel
- 申请人地址: US CA Santa Clara
- 专利权人: Sun Microsystems, Inc.
- 当前专利权人: Sun Microsystems, Inc.
- 当前专利权人地址: US CA Santa Clara
- 代理机构: Kudirka & Jobse, LLP
- 主分类号: G06F12/00
- IPC分类号: G06F12/00 ; G06F12/02 ; G06F13/00
摘要:
A computer system (10) implements a memory allocator that employs a data structure (FIG. 3) to maintain an inventory of dynamically allocated memory available to receive new data. It receives from one or more programs requests that it allocate memory from a dynamically allocable memory “heap.” It responds to such requests by performing the requested allocation and removing the thus-allocated memory block from the inventory. Conversely, it adds to the inventory memory blocks that the supported program or programs request be freed. In the process, it monitors the frequencies with which memory blocks of various sizes are allocated, and it projects from those frequencies future-demand values for memory blocks of those sizes. It then splits larger blocks into smaller ones preemptively, i.e., before a request for the result of the splitting. To split a relatively large block preemptively in order to meet an expected request for a smaller block, it bases its selection of the larger block to be split on whether the supply of free blocks of that size is great enough to meet the expected demand for such blocks. It also splits blocks reactively, i.e., in response to a previously made request for a block that will result from the splitting operation.
公开/授权文献
- US20030084265A1 Preemptive memory-block splitting 公开/授权日:2003-05-01
信息查询