Mechanism for optimizing function execution
AssigneeOracle America, Inc.
InventorsJiwei Lu, William Yu-Wei Chen
Life of this patent
Estimating the term…
Loading patent…
AssigneeOracle America, Inc.
InventorsJiwei Lu, William Yu-Wei Chen
Estimating the term…
A mechanism is provided for managing the referencing of at least two versions of a function. A first version is a single threaded version that does not ensure multi-thread safety. A second version is a multi threaded version that does ensure multi-thread safety. The mechanism determines whether a set of executable code (e.g. a program) is currently executing in single-threaded mode or multi-threaded mode. If the executable code is executing in single-threaded mode, then the mechanism causes the executable code to reference the first version of the function. If the executable code is executing in multi-threaded mode, then the mechanism causes the executable code to reference the second version of the function. By doing so, the mechanism ensures that the additional overhead of ensuring multi-thread safety is incurred only when it is needed. In this manner, the mechanism makes execution of the function more optimal.
A machine implemented method, comprising:
A non-transitory machine readable medium, comprising instructions for a run time optimizer (RTO) thread executing a RTO at run time, the RTO comprising:
Dependencies are inferred from the claim text.