arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1706.00363cs.PL
收藏

一种面向多范式并发编译工具的并发无关协议

A Concurrency-Agnostic Protocol for Multi-Paradigm Concurrent Debugging Tools

Stefan Marr, Carmen Torres Lopez, Dominik Aumayr, Elisa Gonzalez Boix, Hanspeter Mössenböck

摘要:

当今复杂的软件系统结合了高级并发模型。每个模型用于解决一组特定的问题。不幸的是,调试器只支持线程和共享内存的低级概念,迫使开发人员对这些概念进行推理,而不是他们选择的高级并发模型。本文提出了一个并发无关的调试器协议,从目标应用程序所采用的并发模型的调试器。因此,基础语言运行库可以为它支持的每个并发模型定义自定义断点、单步执行操作和执行事件,调试器可以公开它们,而不必专门进行调整。我们评估了协议的通用性,将其应用到SOMns,一个新的实现,它支持多种并发模型,包括通信顺序进程,通信事件循环,线程和锁,fork/join并行,和软件事务内存。我们为这些并发模型实现了21个断点和20个步进操作。对于所有这些,调试器都不需要更改。此外,我们可视化所有并发交互独立于一个特定的并发模型。为了展示特定并发模型的工具是可能的,我们将角色轮换和消息发送分别可视化。

英文摘要:

Today's complex software systems combine high-level concurrency models. Each model is used to solve a specific set of problems. Unfortunately, debuggers support only the low-level notions of threads and shared memory, forcing developers to reason about these notions instead of the high-level concurrency models they chose. This paper proposes a concurrency-agnostic debugger protocol that decouples the debugger from the concurrency models employed by the target application. As a result, the underlying language runtime can define custom breakpoints, stepping operations, and execution events for each concurrency model it supports, and a debugger can expose them without having to be specifically adapted. We evaluated the generality of the protocol by applying it to SOMns, a Newspeak implementation, which supports a diversity of concurrency models including communicating sequential processes, communicating event loops, threads and locks, fork/join parallelism, and software transactional memory. We implemented 21 breakpoints and 20 stepping operations for these concurrency models. For none of these, the debugger needed to be changed. Furthermore, we visualize all concurrent interactions independently of a specific concurrency model. To show that tooling for a specific concurrency model is possible, we visualize actor turns and message sends separately.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑