Пример #1
0
 internal static void StackFree(UIntPtr startAddr, UIntPtr numPages, Process process, bool kernelAllocation, bool initialStack)
 {
     if (useAddressTranslation)
     {
         KernelRange.Free(startAddr, numPages, process);
     }
     else
     {
         FlatPages.StackFree(startAddr, MemoryManager.BytesFromPages(numPages), process, kernelAllocation, initialStack);
     }
 }
Пример #2
0
        internal unsafe UIntPtr Free(UIntPtr startPage, UIntPtr numPages,
                                     Process process)
        {
            CheckAddressSpace();

            if (indirect)
            {
                return(pRange->Free(startPage, numPages, process));
            }
            else
            {
                return(range.Free(startPage, numPages, process));
            }
        }