Patents
US 7,013,454 B2#1868324 Most CitedExpiredUnited States (USPTO)Utility

Thread suspension system and method using trapping instructions

34Forward Citations (#1868324 Global)
1.7/yrCitation Velocity (#2802270 Global)
3.92Citation PageRank (#4914746 Global)
19Prior Art Cited
3Claims (1 Indep. · 2 Dep.)
0Drawings / Sheets

Abstract

By encoding an exception triggering value in storage referenced by an instruction in an otherwise unused slot (e.g., the delay slot of a delayed control transfer instruction or an unused instruction position in a VLIW-based architecture) coinciding with a safe point, an efficient coordination mechanism can be provided for multi-threaded code. Because the mechanism(s) impose negligible overhead when not employed and can be engaged in response to an event (e.g., a start garbage collection event), safe points can be defined at call, return and/or backward branch points throughout mutator code to reduce the latency between the event and suspension of all threads. Though particularly advantageous for thread suspension to perform garbage collection at safe points, the techniques described herein are more generally applicable to program suspension at coordination points coinciding with calls, returns, branches or calls, returns and branches therein.

Interactive Citation Constellation Global Citation Ranking

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

Claims (3 — 1 Independent, 2 Dependent)

  1. Claim 1Independent Claim

    A computer program product encoded in at least one computer readable medium, the computer program product comprising: mutator code executable by a processor and including an instruction that coincides with a safe point in an execution path thereof, the instruction explicitly encoding parallelism amongst multiple component operations thereof, wherein, based on a settable state of the processor, one of the operations of the instruction selectively triggers suspension of the mutator code at the safe point.

  2. Claim 2Depends on #1

    The computer program product of claim 1 , wherein the suspension triggering operation includes a conditional trap operation; and wherein the settable state is encoded in storage accessed on execution by the conditional trap operation.

  3. Claim 3Depends on #1

    The computer program product of claim 1 , wherein the processor includes a very long instruction word-type

Technical Overview & Description

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

References Cited — Backward Prior Art (19)

PatentTitleYearCitations
US 5,088,036 AReal time, concurrent garbage collection system and method1992363
US 5,557,771 AData processing system and storage device and auxiliary memory bits for controlling data protection in the storage device199632
US 5,560,028 ASoftware scheduled superscalar computer architecture199697
US 5,842,016 AThread synchronization in a garbage-collected system using execution barriers199880
US 5,930,508 AMethod for storing and decoding instructions for a microprocessor having a plurality of function units1999114
US 6,052,699 AGarbage collection without fine-grain synchronization200073
US 6,094,663 AMethod and apparatus for implementing atomic queues200023
US 6,125,434 ADynamic memory reclamation without compiler or linker assistance200074
US 6,341,293 B1Real-time computer “garbage collector”200257
US 2002029357 A1Method and system of memory management using stack walking—122
US 6,421,689 B1Moderately conservative, mostly copying 2 space garbage collector in the nursery of a generational memory manager200233
US 6,446,257 B1Method and apparatus for pre-allocation of system resources to facilitate garbage collection2002114
US 6,598,141 B1Manipulating interior pointers on a stack during garbage collection200385
US 6,738,893 B1Method and apparatus for scheduling to reduce space and increase speed of microprocessor operations200436
US 6,799,266 B1Methods and apparatus for reducing the size of code with an exposed pipeline by encoding NOP operations as instruction operands200424

Non-Patent Literature (5)

  • "MAJC(TM) Architecture Tutorial" Sun Microsystems, Inc., White Paper, Sep. 1999, 18 pages [online], Retrieved from the Internet, printed Oct. 29, 2002 <URL: http://www.sun.com/processors/whitepapers/ipdps<SUB>-</SUB>Sudhafinal.pdf>.
  • Appel, "Modern Compiler Implementation in C: Basic Techniques", Cambridge University Press (1998), pp. 125-149 and pp. 291-297.
  • Boehm, Hans J; "Simple Garbage-Collector-Safety", p. 89-98, ACM 1996, retrieved Dec. 7, 2004.
  • De Gloria, Alessandro; Faraboschi, Paolo; "A Programmable Instruction Format Extension to VLIW Architectures", p. 35-40, 1992 IEEE, retrieved Dec. 7, 2004.
  • Jones & Lins, "Garbage Collection: Algorithms for Automatic Dynamic Memory Management," Wiley (1996), pp. 1-41.