gecko-dev/js
Blake Kaplan d383834094 Bug 1376507 - Handle a list of contexts instead of a single context. r=billm
This might be prematurely optimized as it uses two lists (one list of active
contexts and one list of inactive contexts) but I was really attracted by the
idea of being able to answer questions like "is any context active" by only
looking at a single context and not having to iterate the whole list every
time we needed to do anything.

It is really important that nobody touches any of the timestamps (or the
mActive member) outside of the Watchdog lock. I thought about trying to
encapsulate that data in its own class, but that felt like overkill. Let me
know if you disagree.

There are still a couple of uses of XPCJSContext::Get that probably need to be
stamped out, but I think doing so will depend on the details of how we map
JSContexts to XPCJSContext (and XPCJSRuntimes). I think that should wait for a
separate bug.

MozReview-Commit-ID: 9UZlh7Jutne

--HG--
extra : rebase_source : 039b50bc70547b03bc0724435de0a10a29fcf85e
2017-08-28 16:05:11 -07:00
..
ductwork/debugger Bug 1333493 - add BUG_COMPONENT to js/* files. r=bbouvier 2017-03-24 09:50:49 -04:00
examples No bug. Update to new way of detecting emacs 2017-03-26 15:43:23 -07:00
ipc Bug 1393790 part 2 - Remove JS_PropertyStub and JS_StrictPropertyStub. r=jorendorff 2017-08-28 10:40:19 +02:00
public Bug 1394771 - Check that a wasm name is UTF8 when we first read it. r=luke 2017-08-29 15:00:32 +02:00
src Bug 1394573 - Remove the footgun of having --objdir relative to the source checkout, r=till 2017-08-28 14:36:11 -07:00
xpconnect Bug 1376507 - Handle a list of contexts instead of a single context. r=billm 2017-08-28 16:05:11 -07:00
ffi.configure Bug 1363811 - Replace all uses of delayed_getattr(a, 'b') with a.b. r=cmanchester+432261 2017-05-19 07:03:40 +09:00
moz.build Bug 1333493 - add BUG_COMPONENT to js/* files. r=bbouvier 2017-03-24 09:50:49 -04:00
moz.configure Backed out changeset 862ba8683d19 (bug 1272697) 2017-07-28 20:18:28 +02:00