Sound, complete, and tractable linearizability monitoring for concurrent collections

Michael Emmi, Constantin Enea
<span title="2017-12-27">2017</span> <i title="Association for Computing Machinery (ACM)"> <a target="_blank" rel="noopener" href="https://fatcat.wiki/container/dqy7qc7jkzal5bz3gueys3siz4" style="color: black;">Proceedings of the ACM on Programming Languages</a> </i> &nbsp;
While many program properties like the validity of assertions and in-bounds array accesses admit nearly-trivial monitoring algorithms, the standard correctness criterion for concurrent data structures does not. Given an implementation of an arbitrary abstract data type, checking whether the operations invoked in one single concurrent execution are linearizable, i.e., indistinguishable from an execution where the same operations are invoked atomically, requires exponential time in the number of
more &raquo; ... perations. In this work we identify a class of collection abstract data types which admit polynomial-time linearizability monitors. Collections capture the majority of concurrent data structures available in practice, including stacks, queues, sets, and maps. Although monitoring executions of arbitrary abstract data types requires enumerating exponentially-many possible linearizations, collections enjoy combinatorial properties which avoid the enumeration. We leverage these properties to reduce linearizability to Horn satisfiability. As far as we know, ours is the first sound, complete, and tractable algorithm for monitoring linearizability for types beyond single-value registers.
<span class="external-identifiers"> <a target="_blank" rel="external noopener noreferrer" href="https://doi.org/10.1145/3158113">doi:10.1145/3158113</a> <a target="_blank" rel="external noopener" href="https://dblp.org/rec/journals/pacmpl/EmmiE18.html">dblp:journals/pacmpl/EmmiE18</a> <a target="_blank" rel="external noopener" href="https://fatcat.wiki/release/quxm3qgdgrh3zmqxeam77d5tgm">fatcat:quxm3qgdgrh3zmqxeam77d5tgm</a> </span>
<a target="_blank" rel="noopener" href="https://web.archive.org/web/20190505100508/https://hal.archives-ouvertes.fr/hal-01943932/document" title="fulltext PDF download" data-goatcounter-click="serp-fulltext" data-goatcounter-title="serp-fulltext"> <button class="ui simple right pointing dropdown compact black labeled icon button serp-button"> <i class="icon ia-icon"></i> Web Archive [PDF] <div class="menu fulltext-thumbnail"> <img src="https://blobs.fatcat.wiki/thumbnail/pdf/c2/9f/c29fcab90669ea46f0bd5630e92a0fb660fb5c94.180px.jpg" alt="fulltext thumbnail" loading="lazy"> </div> </button> </a> <a target="_blank" rel="external noopener noreferrer" href="https://doi.org/10.1145/3158113"> <button class="ui left aligned compact blue labeled icon button serp-button"> <i class="external alternate icon"></i> acm.org </button> </a>