mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 09:05:45 +00:00
Bug 1006695 - Mark JS worker threads to be known by Nuwa. r=khuey
They will be recreated in the spawned process.
This commit is contained in:
parent
c0bbe69369
commit
5e20812d38
@ -23,6 +23,10 @@
|
||||
#include "jsobjinlines.h"
|
||||
#include "jsscriptinlines.h"
|
||||
|
||||
#ifdef MOZ_NUWA_PROCESS
|
||||
# include "ipc/Nuwa.h"
|
||||
#endif
|
||||
|
||||
using namespace js;
|
||||
|
||||
using mozilla::ArrayLength;
|
||||
@ -724,6 +728,14 @@ void
|
||||
WorkerThread::ThreadMain(void *arg)
|
||||
{
|
||||
PR_SetCurrentThreadName("Analysis Helper");
|
||||
|
||||
#ifdef MOZ_NUWA_PROCESS
|
||||
if (IsNuwaProcess()) {
|
||||
JS_ASSERT(NuwaMarkCurrentThread != nullptr);
|
||||
NuwaMarkCurrentThread(nullptr, nullptr);
|
||||
}
|
||||
#endif
|
||||
|
||||
static_cast<WorkerThread *>(arg)->threadLoop();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user