Bug 1451524: Make interceptor shared VM policy compatible with changes from bug 1456054; r=handyman

--HG--
extra : rebase_source : 14d4eaedec28708978bac42495f3a1eed180ac48
This commit is contained in:
Aaron Klotz 2018-04-26 11:12:55 -06:00
parent a8a8ca5548
commit b59f7ece0f

View File

@ -212,6 +212,18 @@ public:
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);