Code AnalysisHard 60s
Lock-Free Stack ABA Root Cause
Identify the bug.
Starter code
Node* pop(){
Node* h = top.load();
while(h && !top.compare_exchange_weak(h, h->next)) {}
return h;
}Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.