Patents
US 7,865,778 B2#10729985 Most CitedActiveUnited States (USPTO)Utility

Method and system for detecting synchronization errors in programs

10Forward Citations (#10729985 Global)
0.7/yrCitation Velocity (#11419956 Global)
1.76Citation PageRank (#17887755 Global)
10Prior Art Cited
2Claims (1 Indep. · 1 Dep.)
0Drawings / Sheets

Abstract

A method and system for error detection in programs with collective synchronization and/or procedures are provided. In one aspect, the method and system may use interprocedural analysis for matching synchronizations in a program in order to detect synchronization errors, and, if no such errors exist, may determine the synchronization phases of the program. The method and system in one aspect may use a combination of path expressions and interprocedural program slicing to match the synchronization statements that may execute along each program path. If the synchronization matching succeeds, the method and system in one aspect may determine the sets of synchronization statements that synchronize together. A matching failure may indicate the presence of a synchronization error and the method and system in one aspect may construct a counter example to illustrate the error.

Interactive Citation Constellation Global Citation Ranking

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

Claims (2 — 1 Independent, 1 Dependent)

  1. Claim 1Independent Claim

    A method for detecting synchronization errors in a program, comprising: determining concurrent paths in a program with synchronization or one or more procedures or in a program with a combination of synchronization and one or more procedures; constructing one or more synchronization expressions in the concurrent paths; determining whether said one or more synchronization expressions match; and computing a matching function that maps synchronization statements in said one or more synchronization expressions if said one or more synchronization expressions match.

  2. Claim 2Depends on #1

    The method of claim 1 , wherein the step of determining concurrent paths includes: building a control flow graph of the program; inserting one or more φ-nodes at a point in the program where one or more threads meet; inserting one or more φ-gates at a point in the pro

Technical Overview & Description

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

Non-Patent Literature (5)

  • A Krishnamoorthy, et al. "Parallel Programming in Split-C", In Supercomputing '93 Proceedings, Nov. 1993, pp. 262-273.
  • Alain Darte, et al. "A Linear-time Algorithm for Optimal Barrier Placement", In Proceedings of the tenthACM SIGPLAN symposium on Principles and Practice of Parallel Programming, 2005, pp. 26-35.
  • Alexander Aiken, et al. "Barrier Inference", In Proceedings of the 25th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, 1998, pp. 342-354.
  • Arvind Krishnamurthy et al. "Analyses and Optimizations for Shared Address Space Programs", J. Parallel Distrib. Comput., 1996, 130-144, vol. 38, No. 2.
  • Chau-Wen Tseng, "Compiler Optimizations for Eliminating Barrier Synchronization", In Proceedings of the Fifth ACM SIGPLAN Symposium on Principles & Practice of Parallel Programming, Jul. 1995, pp. 144-155, Santa Barbara, California.