Patent ID: 7665077

Claim:
A method for sharing objects between applications executing in a virtual runtime environment, the method comprising: compiling a cpu-independent file to create executable instructions associated with an application, the application being executable in a virtual runtime environment provided by a virtual machine; executing a constructor during compilation of the cpu-independent file, the constructor being associated with a shareable class defined within the cpu-independent file and being configured to create at least one shareable object associated with the shareable class, wherein the constructor is executed under tightened security restrictions; creating a dynamic entry structure for the at least one shareable object associated with the shareable class; updating an entry corresponding to the shareable class in a shareable object table to reference the dynamic entry structure; creating an entry within an object array for the at least one shareable object, the entry identifying a location for the at least one shareable object within a heap; populating the object array and the dynamic entry structure during execution of the constructor, the population includes placing the at least one shareable object within the heap and updating the entry for the at least one shareable object within the object array with the location for the at least one shareable object within the heap; and persisting shareable object information associated with the at least one shareable object, the persisted sharable object information being usable by a plurality of application executing in a common virtual runtime environment.