Optimized recompilation using hardware tracing
AssigneeOracle International Corporation
InventorsIlknur Cansu Kaynak Kocberber, Mario Wolczko, Thomas Wuerthinger
Life of this patent
Estimating the term…
Loading patent…
AssigneeOracle International Corporation
InventorsIlknur Cansu Kaynak Kocberber, Mario Wolczko, Thomas Wuerthinger
Estimating the term…
A tracing controller may utilize a binary execution trace mechanism to trace execution of compiled application machine code. The tracing controller may initiate hardware tracing to gather control-flow hardware traces of a method executing on a processor configured to generate hardware tracing information. The controller may generate a profile based on the hardware tracing information and initiate re-compiling or re-optimizing of the method in response to determining that the new profile differs from the previous profile. The controller may repeatedly profile and re-optimize a method until profiles for the method stabilize. Profiling and hardware tracing of an application may be selectively enabled or disabled allowing the controller to respond to later phase changes in application execution by re-optimizing, thereby potentially improving overall application performance.
-20. (canceled)
A computing device, comprising:
The computing device of claim 1, wherein the application further comprises one or more portions of de-optimized program instructions, and wherein the selected portion of the application excludes the one or more portions of de-optimized program instructions.
The computing device of claim 1, wherein the re-compilation causes at least another portion of the application to be de-optimized, and wherein the tracing controller is further configured to select another portion of the application to trace, the other selected portion excluding at least the de-optimized other portion of the application.
The computing device of claim 1, wherein the re-compilation is initiated responsive to determining that a new profile based at least on the generated hardware tracing information differs more than the threshold amount from a previously generated profile for the selected portion of the application.
The computing device of claim 4, wherein in response to determining that the new profile does not differ more than the threshold amount from the previously generated profile, the tracing controller is further configured to:
The computing device of claim 4, wherein the previously generated profile is generated by an interpreter prior to the processor generating the hardware tracing information of the selected portion.
The computing device of claim 4, wherein the previously generated profile is generated based on hardware tracing information generated prior to generating the hardware tracing information upon which the new profile is based.
The computing device of claim 1, wherein the hardware tracing information comprises one or more of:
The computing device of claim 1, wherein the new profile comprises statistics regarding branch directions, wherein the statistics comprise:
A computer-implemented method, comprising:
The method of claim 10, wherein the application further comprises one or more portions of de-optimized program instructions, and wherein the selected portion of the application excludes the one or more portions of de-optimized program instructions.
The method of claim 10, wherein the re-compilation causes at least another portion of the application to be de-optimized, and wherein the tracing controller is further configured to select another portion of the application to trace, the other selected portion excluding at least the de-optimized other portion of the application.
The method of claim 10, wherein the re-compilation is initiated responsive to determining that a new profile based at least on the generated hardware tracing information differs more than the threshold amount from a previously generated profile for the selected portion of the application.
The method of claim 13 wherein the previously generated profile is generated by an interpreter prior to the processor generating the hardware tracing information of the selected portion.
The method of claim 13, wherein the previously generated profile is generated based on hardware tracing information generated prior to generating the hardware tracing information upon which the new profile is based.
The method of claim 10 wherein the hardware tracing information comprises one or more of:
One or more non-transitory, computer-readable storage media storing program instructions that when executed on or across one or more processors cause the one or more processors to perform:
The one or more non-transitory, computer-readable storage media of claim 17, wherein the application further comprises one or more portions of de-optimized program instructions, and wherein the selected portion of the application excludes the one or more portions of de-optimized program instructions.
The one or more non-transitory, computer-readable storage media of claim 17, wherein the re-compilation causes at least another portion of the application to be de-optimized, and wherein the tracing controller is further configured to select another portion of the application to trace, the other selected portion excluding at least the de-optimized other portion of the application.
The one or more non-transitory, computer-readable storage media of claim 19, wherein the re-compilation is initiated responsive to determining that a new profile based at least on the generated hardware tracing information differs more than the threshold amount from a previously generated profile for the selected portion of the application.
Dependencies are inferred from the claim text.