Class-specific spinlock parameters for increased performance
AssigneeInternational Business Machines Corporation
InventorsDaniel J. HEIDINGA, Angela LIN, Babneet SINGH
Life of this patent
Estimating the term…
Abstract
Techniques are disclosed for providing class-specific parameters for spinlocks in an application executing in a runtime environment. During execution of the application, a blocking portion of code is entered for an object in the application. The runtime environment determines that one or more spinlock parameters is enabled for the object of a class. The runtime environment applies the determined spinlock parameters to the object. A spinlock algorithm is performed using the applied spinlock parameters.
Claims20
A method comprising:
- during execution of an application in a runtime environment, entering a blocking portion of code for an object in the application;
- determining that one or more spinlock parameters is enabled for the object of a first class of a plurality of classes in the application, wherein the one or more spinlock parameters is associated with the first class;
- upon determining that the one or more spinlock parameters for the object is enabled, applying the determined spinlock parameters to the object;
- and
- performing a spinlock algorithm using the applied spinlock parameters.
A computer program product, comprising:
- a computer readable storage medium storing instructions, which, when executed on a processor, perform an operation, comprising:
- during execution of an application in a runtime environment, entering a blocking portion of code for an object in the application,
- determining that one or more spinlock parameters is enabled for the object of a first class of a plurality of classes in the application, wherein the one or more spinlock parameters is associated with the first class,
- upon determining that the one or more spinlock parameters for the object is enabled, applying the determined spinlock parameters to the object, and
- performing a spinlock algorithm using the applied spinlock parameters.
A system, comprising:
- a processor;
- and
- a memory storing program code, which, when executed on the processor, performs an operation, comprising:
- during execution of an application in a runtime environment, entering a blocking portion of code for an object in the application,
- determining that one or more spinlock parameters is enabled for the object of a first class of a plurality of classes in the application, wherein the one or more spinlock parameters is associated with the first class,
- upon determining that the one or more spinlock parameters for the object is enabled, applying the determined spinlock parameters to the object, and
- performing a spinlock algorithm using the applied spinlock parameters.
Dependencies are inferred from the claim text.