International Business Machines Corporation
RESILIENT ADAPTIVE BIASED LOCKING IN MULTI-THREAD CONCURRENT PROGRAM EXECUTION

Last updated:

Abstract:

A computer-implemented method and system for resilient adaptive biased locking. The method includes adding, in a system including an adaptive lock reservation scheme having a learning state, a component comprising a per class counter that counts, collectively, a number of learning failures and a number of revocation failures. An embodiment includes initializing the per class counter upon loading a class with a predetermined value representing at least one of a maximum number of learning failures and cancellation instances associated with the class. An embodiment includes initializing, based on a determination of an operational state of the per class counter for an object transitioning from one of the learning state and a biased state to a flatlock state, a lock word of the object directly to the flatlock state while bypassing the biased state.

Status:
Application
Type:

Utility

Filling date:

25 May 2022

Issue date:

8 Sep 2022