Skip to content

Commit

Permalink
Bug 1451524: Make interceptor shared VM policy compatible with change…
Browse files Browse the repository at this point in the history
…s from bug 1456054; r=handyman
  • Loading branch information
dblohm7 committed Apr 26, 2018
1 parent 24dde66 commit 477337b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions mozglue/misc/interceptor/VMSharingPolicies.h
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,18 @@ class VMSharingPolicyShared : public MMPolicyBase
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);
Expand Down

0 comments on commit 477337b

Please sign in to comment.