Patent ID: 8812809
Filing Date: 2014-08-19
Classification: G06F

Abstract:
1. A method for allocating memory for immutable data that is associated with an application on a computing device, comprising: executing the application using the computing device, wherein executing the application comprises receiving a registration of a customized exception handler at an operating system in the device from the application, wherein the customized exception handler provides application-specific handling for accesses of immutable data in a memory region, and wherein the immutable data is partitioned into a set of blocks while compiling the application for the computing device; allocating the memory region on the computing device to store the immutable data, wherein the memory region is smaller than the immutable data; while executing the application using the computing device, maintaining a table, wherein, for each given block in the set of blocks, the table includes an entry for the given block that comprises a pointer to a function that generates the immutable data for the given block; and in the customized exception handler for the application, performing the operations of: wherein loading the block and reloading the block comprises generating the immutable data for the block into the memory region by using the pointer for the block to execute the function for the block.