Hybrid race detection