Patent ID: 8255922
Filing Date: 2012-08-28
Classification: G06F

Abstract:
1. A method implemented by a computer, wherein a first process is executing on the computer, the method comprising: initializing, in response to executing a first virtual machine (VM) instance on the computer, a first code cache associated with the first VM instance, wherein the computer comprises a persistent storage, a first virtual memory space, and a physical memory; assigning the first virtual memory space to the first code cache; obtaining, from the first VM instance, a persistent storage location; determining that a mappable data structure does not exist at the persistent storage location; obtaining, in response to the determining that the mappable data structure does not exist, a first component associated with the first VM instance and a second component associated with the first VM instance; compiling the first component to obtain first compiled code stored in the first virtual memory space; compiling the second component to obtain second compiled code stored in the first virtual memory space; creating, at the persistent storage location, the mappable data structure; storing the first compiled code and the second compiled code in the mappable data structure; initializing, in response to executing a second virtual machine (VM) instance on the computer, a second code cache associated with the second VM instance, wherein the computer further comprises a second virtual memory space; assigning the second virtual memory space to the second code cache; obtaining, from the second VM instance, the persistent storage location; determining that the mappable data structure exists at the persistent storage location; determining that the mappable data structure is compatible with the second VM instance; and mapping, in response to the determining that the mappable data structure is compatible with the second VM instance, the mappable data structure into the second virtual memory space.