Patents
US 2002166016 A1#3496495 Most CitedPendingUnited States (USPTO)Application

Efficient locking for thread-safe self-modifying code

23Forward Citations (#3496495 Global)
1.0/yrCitation Velocity (#7513373 Global)
2.87Citation PageRank (#8145366 Global)
16Prior Art Cited
0Structured Claims
0Drawings / Sheets

Abstract

A locking mechanism for use in a multi-thread environment supporting self-modifying code in which modifications to the code are made at runtime. The locking mechanism having associated helper code accessed by a call from the first instruction address in the code block. The helper code calculating the binary encoding for the call instruction and using an atomic compare and exchange instruction to compare the calculated binary encoding with the actual contents of the first instruction address. Where there is a match, a self loop instruction is written to the first instruction address to lock the specified code block for subsequent threads. The helper code contains instructions to resolve the references in the specified block. The last such instruction is an atomic store operation to replace the self loop instruction at the first instruction address with the appropriate modified instruction.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 23.

Claims (0)

No claim text indexed for this record.

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

References Cited — Backward Prior Art (16)

PatentTitleYearCitations
US 5,274,823 AInterrupt handling serialization for process level programming199341
US 5,408,629 AApparatus and method for controlling exclusive access to portions of addressable memory in a multiprocessor system1995137
US 5,511,178 ACache control system equipped with a loop lock indicator for indicating the presence and/or absence of an instruction in a feedback loop section199668
US 5,560,018 AProviding external interrupt serialization compatibility in a multiprocessing environment for software written to run in a uniprocessor environment199639
US 5,768,610 ALookahead register value generator and a superscalar microprocessor employing same199875
US 5,790,851 AMethod of sequencing lock call requests to an O/S to avoid spinlock contention within a multi-processor environment1998103
US 5,845,298 AWrite barrier system and method for trapping garbage collection page boundary crossing pointer stores1998145
US 5,991,845 ARecoverable spin lock system199965
US 6,000,028 AMeans and apparatus for maintaining condition codes in an unevaluated state199950
US 6,108,757 AMethod for locking a shared resource in multiprocessor system200020
US 6,269,436 B1Superscalar microprocessor configured to predict return addresses from a return stack storage200172
US 2002042807 A1Low-contention grey object sets for concurrent, marking garbage collection—24
US 6,446,149 B1Self-modifying synchronization memory address space and protocol for communication between multiple busmasters of a computer system200248
US 6,842,853 B1Thread suspension system and method200524
US 6,934,832 B1Exception mechanism for a computer2005101