Bug 1451524: Make interceptor shared VM policy compatible with changes from bug 1456054; r=handyman
authorAaron Klotz <aklotz@mozilla.com>
Thu, 26 Apr 2018 11:12:55 -0600
changeset 472062 83d635a4720194bec17d98035878d33cca1aa0e8
parent 472061 43385aef5932a5d988709919e82c90c96af1ba1b
child 472063 442c41eb3ab1be47e960e344305b9421ac944f75
push id1728
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:12:27 +0000
treeherdermozilla-release@c296fde26f5f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershandyman
bugs1451524, 1456054
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1451524: Make interceptor shared VM policy compatible with changes from bug 1456054; r=handyman
mozglue/misc/interceptor/VMSharingPolicies.h
--- a/mozglue/misc/interceptor/VMSharingPolicies.h
+++ b/mozglue/misc/interceptor/VMSharingPolicies.h
@@ -207,16 +207,28 @@ public:
     ProcMapEntry* entry;
     if (!find(mPid, &entry)) {
       return false;
     }
 
     return entry->mVMPolicy.Reserve(aCount);
   }
 
+  bool IsPageAccessible(void* aVAddress) const
+  {
+    AutoCriticalSection lock(&sCS);
+
+    ProcMapEntry* entry;
+    if (!find(mPid, &entry)) {
+      return false;
+    }
+
+    return entry->mVMPolicy.IsPageAccessible(aVAddress);
+  }
+
   Trampoline<MMPolicy> GetNextTrampoline()
   {
     AutoCriticalSection lock(&sCS);
 
     ProcMapEntry* entry;
     if (!find(mPid, &entry)) {
       return nullptr;
     }