Watchpoints on transactional variables
Abstract
Transactional programming promises to substantially simplify the development and maintenance of correct, scalable, and efficient concurrent programs. Designs for supporting transactional programming using transactional memory implemented in hardware, software, and a mixture of the two have emerged recently. However, various features and capabilities that would be desirable for debugging programs executed using transactional memory are absent from conventional debuggers. Because transactional memory implementations provide the “illusion” of multiple memory locations changing value atomically, while in fact they do not, there can be significant challenges involved with integrating debuggers with such programs to provide the user with a coherent view of program execution. We describe use of transactional memory access tracking mechanism for implementations of watchpoints on memory locations that correspond to transactional variables.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 10 · Forward citations: 42.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method, comprising: using a computer to perform: setting a watchpoint on a memory location that corresponds to a transactional variable, wherein the transactional variable is a variable that is accessed by one or more atomic transactions; detecting access, by an instruction within a given one of the one or more atomic transactions during execution of the given atomic transaction, to the watchpointed memory location; and in response to the detected access, interrupting execution of the given atomic transaction during execution of the given atomic transaction.
- Claim 2Depends on #1
The method of claim 1 , further comprising: using the computer to perform: invoking debugger functionality upon access, by the given atomic transaction, to the watchpointed memory location.
- Claim 3Depends on #1
The method of claim 1 , further comprising: using the computer to perform:
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 42 total)
References Cited — Backward Prior Art (10)
Non-Patent Literature (5)
- "12 Great Reasons why Etnus TotalView is the World's Best C/C++ Debugger", ETNUS TotalView® The most advanced debugger on Linux and UNIX, © 2003 Etnus, 2 pages.
- "Debugging Memory Problems Using TotalView," Version 8.0, Copyright 2006, Etnus LLC, 120 pages.
- Afek, Y., et al., "Atomic Snapshots of Shared Memory", Journal of the Association for Computing Machinery, vol. 40, No. 4, Sep. 1993, ACM, New York, NY, pp. 873-890.
- Harris, T., et al., "A Practical Multi-Word Compare-and-Swap Operation", in Proceedings of the 16th International Symposium on DIStributed Computing (2002), pp. 265-279.
- Herlihy, M., et al., "Software transactional Memory for Dynamic Data Structures," in Proceedings of the 22nd Annual ACM Symposium on Principles of Distributed Computing (2003), 10 pages.