Invention Grant
US08495607B2 Performing aggressive code optimization with an ability to rollback changes made by the aggressive optimizations 有权
执行积极的代码优化,具有回滚积极优化所做的更改的能力

Performing aggressive code optimization with an ability to rollback changes made by the aggressive optimizations
Abstract:
Mechanisms for aggressively optimizing computer code are provided. With these mechanisms, a compiler determines an optimization to apply to a portion of source code and determines if the optimization as applied to the portion of source code will result in unsafe optimized code that introduces a new source of exceptions being generated by the optimized code. In response to a determination that the optimization is an unsafe optimization, the compiler generates an aggressively compiled code version, in which the unsafe optimization is applied, and a conservatively compiled code version in which the unsafe optimization is not applied. The compiler stores both versions and provides them for execution. Mechanisms are provided for switching between these versions during execution in the event of a failure of the aggressively compiled code version. Moreover, predictive mechanisms are provided for predicting whether such a failure is likely.
Information query
Patent Agency Ranking
0/0