From 4fb3553a930fcf15ebfab07ea7a3362bed6d5b73 Mon Sep 17 00:00:00 2001 From: Nathan Froyd Date: Fri, 11 Sep 2015 19:24:53 -0400 Subject: [PATCH] Bug 1153394 - make HangMonitorChild::sInstance an atomic variable; r=billm --- dom/ipc/ProcessHangMonitor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dom/ipc/ProcessHangMonitor.cpp b/dom/ipc/ProcessHangMonitor.cpp index 4451b90ac224..a56d71b30ec2 100644 --- a/dom/ipc/ProcessHangMonitor.cpp +++ b/dom/ipc/ProcessHangMonitor.cpp @@ -106,7 +106,7 @@ class HangMonitorChild private: void ShutdownOnThread(); - static HangMonitorChild* sInstance; + static Atomic sInstance; const nsRefPtr mHangMonitor; Monitor mMonitor; @@ -124,7 +124,7 @@ class HangMonitorChild bool mIPCOpen; }; -HangMonitorChild* HangMonitorChild::sInstance; +Atomic HangMonitorChild::sInstance; /* Parent process objects */