Claims
- 1. A process for optimizing the distribution of methods within the memory space of a computer system or virtual machine, comprising the steps of:
determining a selection of methods to be regenerated; creating regenerated methods, and replacing references to each method with references to the regenerated method; and, erasing all non-regenerated methods and releasing the memory space occupied by those non-regenerated methods.
- 2. The process of claim 1 wherein the step of determining is used to determine an optimal locking mechanism to be used with the method.
- 3. The process of claim 1 wherein the step of erasing uses a stop and copy method of garbage collection.
- 4. The process of claim 1 wherein the step of erasing uses a mark and sweep method of garbage collection.
- 5. The process of claim 1 wherein the step of erasing uses a mark and compact method of garbage collection.
- 6. The process of claim 1 wherein the virtual machine is a component of an application server that comprises:
a computer machine including a processor; an operating system for communicating between the computer machine and a virtual machine; a virtual machine, including a number of methods and threads associated therewith; and, an application server for hosting applications that can use the methods provided by the virtual machine.
- 7. A process for optimizing the distribution of methods within the memory space of a computer system or virtual machine, comprising the steps of:
determining a selection of methods to be kept; creating a copy of the methods to be kept, and patching references to each method within the new copy; and, erasing all other methods and releasing the memory space occupied by those methods.
CROSS REFERENCE TO RELATED APPLICATIONS
[0001] This application is a continuation-in-part of “SYSTEM AND METHOD FOR REGENERATION OF METHODS AND GARBAGE COLLECTION OF UNUSED METHODS”, Ser. No. 10/111,566, filed Apr. 26, 2002 which claims priority from PCT application WO 01/31455A1, filed Oct. 27, 2000. This application also claims priority from provisional application “SYSTEM AND METHOD FOR REGENERATION OF METHODS AND GARBAGE COLLECTION OF UNUSED METHODS”, Ser. No. 60/368,920, filed Mar. 29, 2002. All of the above applications are incorporated herein by reference.
Provisional Applications (1)
|
Number |
Date |
Country |
|
60368920 |
Mar 2002 |
US |
Continuation in Parts (1)
|
Number |
Date |
Country |
Parent |
10111566 |
Oct 2002 |
US |
Child |
10162308 |
Jun 2002 |
US |