Method and apparatus for optimizing execution of Java programs
AssigneeInternational Business Machines Corporation
InventorsMichael Wayne Brown, Joseph Herbert McIntyre, Scott Lee Winters
Life of this patent
Estimating the term…
Abstract
A method and apparatus for optimizing execution of Java programs. A fully caffienated class file is provided in which a standard Java class file, containing a directory and bytecodes, is enhanced to include optimized content and a second directory containing pointers to the optimized content. The second directory contains entries that are distinguished by platforms for which the optimized content is appropriate.
Claims42
A method for optimizing execution of an application in a data processing system, the method comprising the data processing system implemented steps of:
- providing a class file, wherein the class file includes a directory and bytecodes;
- modifying the class file to add optimized content to the class file, wherein the optimized content is optimized for the data processing system;
- and
- adding a second directory to the class file, wherein the second directory provides access to the optimized content.
A method for optimizing execution of an application in a data processing system, the method comprising the data processing system implemented steps of:
- providing a class file, wherein the class file includes a directory and bytecodes;
- modifying the class file to add optimized content to the class file, wherein the optimized content is optimized for the data processing system;
- and
- adding a second directory to the class file, wherein the second directory provides access to the optimized content, wherein the optimized content includes a pointer to content located external to the class file, and the pointer is a universal resource locator.
A method for optimizing execution of an application in a data processing system, the method comprising the data processing system implemented steps of:
- providing a class file, wherein the class file includes a directory and bytecodes;
- modifying the class file to add optimized content to the class file, wherein the optimized content is optimized for the data processing system;
- and
- adding a second directory to the class file, wherein the second directory provides access to the optimized content, wherein the optimized content includes a pointer to content located external to the class file, and the pointer points to optimized content on a server.
A method for optimizing execution of an application in a data processing system, the method comprising the data processing system implemented steps of:
- providing a class file, wherein the class file includes a directory and bytecodes;
- modifying the class file to add optimized content to the class file, wherein the optimized content is optimized for the data processing system;
- and
- adding a second directory to the class file, wherein the second directory provides access to the optimized content, wherein the second directory includes a plurality of entries in which each entry includes criteria and a pointer.
A method for processing a class file by a platform in a data processing system, the method comprising:
- loading the class file, wherein the class file includes a plurality of bytecodes;
- a first directory, wherein the directory points to the plurality of bytecodes;
- content including native content optimized for the platform;
- a second directory including a plurality of criteria associated with a plurality of pointers, wherein each pointer points to a portion of the content;
- comparing the platform to the plurality of criteria;
- and
- utilizing the optimized content using a pointer associated with criteria matching the platform.
A method for processing a class file by a platform in a data processing system, the method comprising:
- loading the class file, wherein the class file includes a plurality of bytecodes;
- a first directory, wherein the directory points to the plurality of bytecodes;
- content including native content optimized for the platform;
- a second directory including a plurality of criteria associated with a plurality of pointers, wherein each pointer points to a portion of the content;
- comparing the platform to the plurality of criteria;
- and
- utilizing the optimized content using a pointer associated with criteria matching the platform,
- wherein the bytecodes are utilized in response to an absence of a match between the platform and the plurality of criteria.
A data structure, in a computer readable medium, comprising:
- a plurality of bytecode;
- a first directory, wherein the directory points to the plurality of bytecode;
- optimized content;
- and
- a second directory including a plurality of criteria associated with a plurality of pointers, wherein each pointer points to a directory of optimized content.
A data processing system for optimizing execution of an application in the data processing system, the data processing system comprising:
- providing means for providing class file, wherein the class file includes a directory and bytecodes;
- and
- modification means for modifying the class file to add optimized content to the class file, wherein the optimized content is optimized for the data processing system;
- and
- adding means for adding a second directory, wherein the second directory provides access to the optimized content.
A data processing system for optimizing execution of an application in the data processing system, the data processing system comprising:
- providing means for providing class file, wherein the class file includes a directory and bytecodes;
- and
- modification means for modifying the class file to add optimized content to the class file, wherein the optimized content is optimized for the data processing system;
- and
- adding means for adding a second directory, wherein the second directory provides access to the optimized content, wherein the optimized content includes a pointer to content located external to the class file.
A data processing system for optimizing execution of an application in the data processing system, the data processing system comprising:
- providing means for providing class file, wherein the class file includes a directory and bytecodes;
- and
- modification means for modifying the class file to add optimized content to the class file, wherein the optimized content is optimized for the data processing system;
- and
- adding means for adding a second directory, wherein the second directory provides access to the optimized content, wherein the second directory includes a plurality of entries in which each entry includes criteria and a pointer.
A computer program product for optimizing execution of an application in a data processing system, the computer program product comprising:
- a computer usable medium;
- first instructions for providing class file, wherein the class file includes a directory and bytecodes;
- second instructions for modifying the class file to add optimized content to the class file, wherein the optimized content is optimized for the data processing system;
- and
- third instructions for adding a second directory, wherein the second directory provides access to the optimized content,
- wherein the instructions are embodied within the computer usable medium.
Dependencies are inferred from the claim text.