Bug 300335
| Summary: | Fix race condition in testVMManagerStopTheWorld(). | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Mark Lam <mark.lam> |
| Component: | New Bugs | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/162135022>
Mark Lam
Pull request: https://github.com/WebKit/WebKit/pull/51958
EWS
Committed 301159@main (24181825972e): <https://commits.webkit.org/301159@main>
Reviewed commits have been landed. Closing PR #51958 and removing active labels.