Bug 300335

Summary: Fix race condition in testVMManagerStopTheWorld().
Product: WebKit Reporter: Mark Lam <mark.lam>
Component: New BugsAssignee: Mark Lam <mark.lam>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Mark Lam
Reported 2025-10-07 11:47:57 PDT
The global totalNumberOfVMs is being incremented from worker threads as they start. As such, there's a race where their read-modify-write operation can trash each other's mods. The fix is simply to make totalNumberOfVMs atomic.
Attachments
Radar WebKit Bug Importer
Comment 1 2025-10-07 11:48:18 PDT
Mark Lam
Comment 2 2025-10-07 12:07:30 PDT
EWS
Comment 3 2025-10-07 13:11:24 PDT
Committed 301159@main (24181825972e): <https://commits.webkit.org/301159@main> Reviewed commits have been landed. Closing PR #51958 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.