Efficient Dynamic Algorithms to Predict Short Races
Abstract
We introduce and study the problem of detecting short races in an observed trace. Specifically, for a race type , given a trace and window size , the task is to determine whether there exists an -race in such that the subtrace starting with and ending with contains at most events. We present a monitoring framework for short-race prediction and instantiate the framework for happens-before and sync-preserving races, yielding efficient detection algorithms. Our happens-before algorithm runs in the same time as FastTrack but uses space that scales with as opposed to . For sync-preserving races, our algorithm runs faster and consumes significantly less space than SyncP. Our experiments validate the effectiveness of these short-race detection algorithms: they run more efficiently, use less memory, and detect significantly more races under the same budget, offering a reasonable balance between resource usage and predictive power.
Keywords
Cite
@article{arxiv.2603.03141,
title = {Efficient Dynamic Algorithms to Predict Short Races},
author = {Minjian Zhang and Mahesh Viswanathan},
journal= {arXiv preprint arXiv:2603.03141},
year = {2026}
}
Comments
Manuscript under review