Back out bug 1308039 - Preempt GC to paint (a=backout)
authorBill McCloskey <billm@mozilla.com>
Fri, 06 Jan 2017 11:53:03 -0800
changeset 353509 fc150c017ac2a53b02a05d007d9c61bcd841c3ed
parent 353508 32d04f8230aa83e83ca6609d732c03f02c9926de
child 353510 f312b22c2ec54129f8cfc938ab4fd21c7551e48b
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbackout
bugs1308039
milestone52.0a2
Back out bug 1308039 - Preempt GC to paint (a=backout) This reverts commit 7a09100b677a1967c66e9ebd2273ef01e2fc317d. MozReview-Commit-ID: 5ghL6nbMqeZ
dom/ipc/ProcessHangMonitor.cpp
--- a/dom/ipc/ProcessHangMonitor.cpp
+++ b/dom/ipc/ProcessHangMonitor.cpp
@@ -396,17 +396,16 @@ HangMonitorChild::RecvForcePaint(const T
   {
     MonitorAutoLock lock(mMonitor);
     mForcePaint = true;
     mForcePaintTab = aTabId;
     mForcePaintEpoch = aLayerObserverEpoch;
   }
 
   JS_RequestInterruptCallback(mContext);
-  JS::RequestGCInterruptCallback(mContext);
 
   return true;
 }
 
 void
 HangMonitorChild::ClearForcePaint()
 {
   MOZ_RELEASE_ASSERT(NS_IsMainThread());
@@ -1204,17 +1203,16 @@ mozilla::CreateHangMonitorParent(Content
 PProcessHangMonitorChild*
 mozilla::CreateHangMonitorChild(mozilla::ipc::Transport* aTransport,
                                 base::ProcessId aOtherPid)
 {
   MOZ_RELEASE_ASSERT(NS_IsMainThread());
 
   JSContext* cx = danger::GetJSContext();
   JS_AddInterruptCallback(cx, InterruptCallback);
-  JS::AddGCInterruptCallback(cx, InterruptCallback);
 
   ProcessHangMonitor* monitor = ProcessHangMonitor::GetOrCreate();
   HangMonitorChild* child = new HangMonitorChild(monitor);
 
   monitor->MonitorLoop()->PostTask(NewNonOwningRunnableMethod
                                    <mozilla::ipc::Transport*,
                                     base::ProcessId,
                                     MessageLoop*>(child,