Patent ID: 11868818
Assignee: ADVANCED MICRO DEVICES, INC.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 25:
26. A processing device configured for speculative locking, the device comprising
a processor core including an execution pipeline;
wherein the processing device is configured to:
execute a lock instruction of a thread to lock a particular memory entry of a memory device,

wherein the lock instruction is executed either speculatively or non-speculatively based on whether, during a particular time period, a number of times the particular memory entry was modified by a second thread during a window of exposure of an earlier speculative lock exceeds a threshold number;
wherein executing the lock instruction as a speculative lock includes permitting modification by the second thread to the particular memory entry;
wherein the window of exposure is a time interval from a time when the particular memory entry was read during one of the earlier speculative locks to a time when the one of the earlier speculative lock completed.