Autonomic method and apparatus for hardware assist for patching code
Abstract
A method, apparatus and computer instructions for hardware assist for autonomically patching code. The present invention provides hardware microcode to a new type of metadata to selectively identify instructions to be patched for specific performance optimization functions. The present invention also provides a new flag in the machine status register (MSR) to enable or disable a performance monitoring application or process to perform code-patching functions. If the code patching function is enabled, the application or process may patch code at run time by associating the metadata with the selected instructions. The metadata includes pointers pointing to the patch code block code. The program code may be patched autonomically without modifying original code.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 50 · Forward citations: 5.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of autonomically patching computer program code, comprising: checking a flag in a machine status register to determine whether code patching functionality is to be enabled; responsive to determining that code patching functionality is to be enabled, enabling the code patching functionality; executing a computer program instruction, wherein the computer program instruction is located at a start of a block of code of an execution sequence of original code instructions; determining whether metadata is associated with the computer program instruction, wherein the metadata identifies the c
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (5 of 5 total)
References Cited — Backward Prior Art (50)
Non-Patent Literature (5)
- Aho et al., "Compilers: Principles, Techniques, and Tools", Addison-Wesley, 1988, pp. 488-497.
- Chang et al., "Using Profile Information to Assist Classic Code Optimizations", Software Pract. Exper. Dec. 21, 1991, pp. 1301-1321.
- Cohen et al., "Hardware-Assisted Characterization of NAS Benchmarks", Cluster Computing, vol. 4, No. 3, Jul. 2001, pp. 189-196.
- Conte et al., "Accurate and Practical Profile-Driven Compilation Using the Profile Buffer", Proceedings of the 29th Annual ACM/IEEE International Symposium on Microarchitecture, Paris, France, 1996, pp. 36-45.
- Conte et al., "Using Branch Handling Hardware to Support Profile-Driven Optimization", Proceedings of the 27th Annual International Symposium on Microarchitecture, San Jose CA, 1994, pp. 12-21.