Commit Graph

8 Commits

Author SHA1 Message Date
Karl Tomlinson
4b6d0c28fa bug 1442776 make CycleCollectedJSContext accessible from JSContext private r=peterv
Inheriting PerThreadAtomCache on CycleCollectedJSContext permits use of
static_cast, avoiding one level of indirection compared to adding a
CycleCollectedJSContext* to PerThreadAtomCache.

PerThreadAtomCache is over 18kB, and so WorkerJSContext and WorkletJSContext
are moved from the stack to the heap.

MozReview-Commit-ID: 6jdJeZcviK4
2018-05-10 17:04:12 +12:00
Karl Tomlinson
6bb08c1ad7 bug 1328964 add CycleCollectedJSContext::IsSystemCaller() to make ThreadsafeIsSystemCaller() safe for worklets r=baku
MozReview-Commit-ID: Cg4OBbm5CwA
2018-04-06 18:53:25 +12:00
Karl Tomlinson
b73479f56e bug 1328964 terminate worklet thread during xpcom shutdown r=baku
The final CC does not happen until after threads are shutdown and so we can't
depend on CC to trigger termination.

This management of the worklet thread by worklet code is an intermediate
situation until worklets run on the threads managed by other objects.

MozReview-Commit-ID: 8hWsdRCppC2
2018-04-12 16:26:08 +12:00
Karl Tomlinson
aa2e29479f bug 1328964 don't try to cycle collect after worklet cycle collector has been shut down r=baku
MozReview-Commit-ID: 5BTcAOZwvIU
2018-03-06 19:23:07 +13:00
Karl Tomlinson
19f8c11141 bug 1328964 add CycleCollectedJSContext::GetAsWorkletJSContext() and use it in IsOnWorkletThread() r=smaug
MozReview-Commit-ID: BUujWXYho1G
2018-04-06 09:45:56 +12:00
Karl Tomlinson
176ea5b67d bug 1328964 add override to ~WorkletJSContext/Runtime and use = default r=baku
Addresses modernize-use-override and modernize-use-equals-default
clang-tidy suggestions in "part 2 - Worklet Thread".

MozReview-Commit-ID: H1a9kBCF1Q6
2018-03-27 18:15:54 +13:00
Andrea Marchesini
3f54b1d29e Bug 1328964 - part 3 - Console API exposed to worklets r=baku
Initial version r=smaug.
Rebased to c616a6fd5e4b by Jan-Ivar Bruaroey <jib@mozilla.com> r=karlt.
Rebased to 83de58ddda20 by Karl Tomlinson <karlt+@karlt.net> r=baku.

MozReview-Commit-ID: G5E5OXydj3a
2018-04-12 16:21:20 +12:00
Andrea Marchesini
5fe176661f Bug 1328964 - part 2 - WorkletThread r=baku
Initial version r=smaug.
Rebased to c616a6fd5e4b by Jan-Ivar Bruaroey <jib@mozilla.com> r=karlt.
Rebased to 83de58ddda20 by Karl Tomlinson <karlt+@karlt.net> r=baku.

MozReview-Commit-ID: Lo8TWtN8qyz
2018-04-12 15:14:48 +12:00