Previously, it only gets notified when plans are done compiling. As a result, if JITWorklist::waitUntilAllPlansForVMAreReady() found non-ready plans and started waiting, and those plans were canceled, then JITWorklist::waitUntilAllPlansForVMAreReady() can hang indefinitely. rdar://78314543
Created attachment 433619 [details] proposed patch.
Comment on attachment 433619 [details] proposed patch. View in context: https://bugs.webkit.org/attachment.cgi?id=433619&action=review r=me > Source/JavaScriptCore/jit/JITWorklist.cpp:336 > + bool didCancelPlans = deadPlanKeys.size(); Using !isEmpty() would be better.
Thanks for the review. (In reply to Yusuke Suzuki from comment #2) > > Source/JavaScriptCore/jit/JITWorklist.cpp:336 > > + bool didCancelPlans = deadPlanKeys.size(); > > Using !isEmpty() would be better. Agreed. Will fix.
Landed in r279961: <http://trac.webkit.org/r279961>.