Method to check neighbor pages
This commit is contained in:
parent
d1c1f411fa
commit
fc7f80af2d
2
.gitmodules
vendored
2
.gitmodules
vendored
@ -1,3 +1,5 @@
|
|||||||
[submodule "dynamic-memory-api-0"]
|
[submodule "dynamic-memory-api-0"]
|
||||||
path = dynamic-memory-api-0
|
path = dynamic-memory-api-0
|
||||||
url = https://git.landgrafhomyak.ru/MemoryManagement/dynamic-memory-api-0.git
|
url = https://git.landgrafhomyak.ru/MemoryManagement/dynamic-memory-api-0.git
|
||||||
|
[submodule ".\\dynamic-memory-api-0\\"]
|
||||||
|
url = https://git.landgrafhomyak.ru/MemoryManagement/dynamic-memory-api-0.rs
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
Subproject commit c60ffac4f647d876144bbd92cbada5fb4b648afa
|
Subproject commit d9574164f284c3a67a48d0ccbed2f81badb6b906
|
||||||
@ -1,7 +1,5 @@
|
|||||||
use crate::{WindowsVirtualMemoryApi, winapi_wrappers};
|
use crate::{WindowsVirtualMemoryApi, winapi_wrappers};
|
||||||
use dynamic_memory_api_0::virtual_memory::{
|
use dynamic_memory_api_0::virtual_memory::{ExtendResult, Reservation, VirtualMemoryApi};
|
||||||
ExtendResult, Reservation, VirtualMemoryApi,
|
|
||||||
};
|
|
||||||
use std::cmp::Ordering;
|
use std::cmp::Ordering;
|
||||||
use std::ffi::c_void;
|
use std::ffi::c_void;
|
||||||
use std::mem::ManuallyDrop;
|
use std::mem::ManuallyDrop;
|
||||||
@ -122,6 +120,10 @@ unsafe impl Reservation for WindowsReservation<'_> {
|
|||||||
self._release();
|
self._release();
|
||||||
let _ = ManuallyDrop::new(self);
|
let _ = ManuallyDrop::new(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn isFollowedBy(&self, next: &Self) -> bool {
|
||||||
|
unsafe { return self._offset(self.pagesCount) == next.start }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Drop for WindowsReservation<'_> {
|
impl Drop for WindowsReservation<'_> {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user