mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 1376985 - Label DebuggerOnGCRunnable (r=fitzgen)
MozReview-Commit-ID: DoYm2d5Gmnr
This commit is contained in:
parent
548982bb83
commit
4a0cf674f2
@ -9,6 +9,7 @@
|
||||
#include "mozilla/dom/ScriptSettings.h"
|
||||
#include "mozilla/CycleCollectedJSContext.h"
|
||||
#include "mozilla/Move.h"
|
||||
#include "mozilla/SystemGroup.h"
|
||||
#include "js/Debug.h"
|
||||
|
||||
namespace mozilla {
|
||||
@ -23,7 +24,11 @@ DebuggerOnGCRunnable::Enqueue(JSContext* aCx, const JS::GCDescription& aDesc)
|
||||
|
||||
RefPtr<DebuggerOnGCRunnable> runOnGC =
|
||||
new DebuggerOnGCRunnable(Move(gcEvent));
|
||||
return NS_DispatchToCurrentThread(runOnGC);
|
||||
if (NS_IsMainThread()) {
|
||||
return SystemGroup::Dispatch("DebuggerOnGCRunnable", TaskCategory::GarbageCollection, runOnGC.forget());
|
||||
} else {
|
||||
return NS_DispatchToCurrentThread(runOnGC);
|
||||
}
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
Loading…
Reference in New Issue
Block a user