×

Method and apparatus for allocating memory for immutable data on a computing device

  • US 9,477,588 B2
  • Filed: 05/07/2014
  • Issued: 10/25/2016
  • Est. Priority Date: 06/10/2008
  • Status: Active Grant
First Claim
Patent Images

1. A method comprising:

  • allocating a memory region on a computing device to store blocks of immutable data on a computing device, wherein the immutable data as a whole does not fit in the memory region and wherein a table of block descriptors maintains one or more currently-used block descriptor entries that each comprise statistical information for one of the blocks and a function pointer that points to a function for regenerating the data in an immutable block that is referenced by the block descriptor entry; and

    while executing an application on the computing device, in response to a request to access a particular block of the immutable data that is not already present in the memory region,determining whether space is available in the memory region to store the particular block,in response to determining that there is not enough space available in the memory region to store the particular block, using statistical information for the blocks that are stored in the memory region to identify a target block that is unlikely to be accessed before others of the blocks that are stored in the memory region, and evicting the target block from the memory region, wherein the statistical information for the blocks comprises statistical information for the target block that is retrieved from a block descriptor entry that is associated with the target block,allocating space for the particular block of the immutable data in the memory region,loading the particular block of the immutable data into the allocated space, andaccessing the particular block of the immutable data from the allocated space in the memory region.

View all claims
  • 0 Assignments
Timeline View
Assignment View
    ×
    ×