mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
4e593a1e00
MainThreadInvoker queues both a Gecko runnable and an APC to the main thread to deal with different ways in which the main thread can block. However, the main thread doesn't check for APCs very often any more. This means that the APC's reference to the SyncRunnable doesn't get cleaned up for a long time, thus leaking memory. To work around this, we: 1. Queue an APC wich does the actual work. 2. Post a Gecko runnable (which always runs). If the APC hasn't run, the Gecko runnable runs it. Otherwise, it does nothing. MozReview-Commit-ID: L0P4rMBnlaZ --HG-- extra : rebase_source : 3af871cf59e94818963e15881217218ef2b42b6c |
||
---|---|---|
.. | ||
app | ||
chromium | ||
contentproc | ||
glue | ||
ipdl | ||
mscom | ||
testshell | ||
moz.build | ||
pull-chromium.py |