Patent ID: 7840950

Claim:
A computer-implemented method of optimizing compiler-generated code, comprising: for each of at least one selected variable for which a value thereof will be used as a glacial constant in the compiler-generated code, creating optimized compiler-generated code from source code for each of at least one method that references the selected variable, wherein the optimized compiler-generated code uses the value as the glacial constant by generating the code as if the value is a particular constant value for that selected variable; and providing a programmatic run-time adjustment capability for programmatically changing the created optimized code for a particular selected variable, at run time, to execute code that uses the value of the particular selected variable as a variable, as a replacement for the optimized compiler-generated code that uses the value as the glacial constant, upon programmatically detecting that run-time execution encounters compiler-generated code capable of causing the value of the particular selected variable to change to a different value than the particular constant value for which the optimized code was created.