diff options
| author | 2018-11-13 11:06:33 -0500 | |
|---|---|---|
| committer | 2018-11-13 13:08:19 -0500 | |
| commit | b8e885c6e5de880d68e9b43480ee6f6423375b09 (patch) | |
| tree | 9893b285c0dc75fc8bc61a1c7568789e84c6c72f /src/core/hle/kernel/process.h | |
| parent | Merge pull request #1628 from greggameplayer/Texture2DArray (diff) | |
| download | yuzu-b8e885c6e5de880d68e9b43480ee6f6423375b09.tar.gz yuzu-b8e885c6e5de880d68e9b43480ee6f6423375b09.tar.xz yuzu-b8e885c6e5de880d68e9b43480ee6f6423375b09.zip | |
kernel/process: Migrate heap-related memory management out of the process class and into the vm manager
Avoids a breach of responsibilities in the interface and keeps the
direct code for memory management within the VMManager class.
Diffstat (limited to 'src/core/hle/kernel/process.h')
| -rw-r--r-- | src/core/hle/kernel/process.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h index 8d2616c79..f79f6d7a5 100644 --- a/src/core/hle/kernel/process.h +++ b/src/core/hle/kernel/process.h | |||
| @@ -292,17 +292,6 @@ private: | |||
| 292 | u32 allowed_thread_priority_mask = 0xFFFFFFFF; | 292 | u32 allowed_thread_priority_mask = 0xFFFFFFFF; |
| 293 | u32 is_virtual_address_memory_enabled = 0; | 293 | u32 is_virtual_address_memory_enabled = 0; |
| 294 | 294 | ||
| 295 | // Memory used to back the allocations in the regular heap. A single vector is used to cover | ||
| 296 | // the entire virtual address space extents that bound the allocations, including any holes. | ||
| 297 | // This makes deallocation and reallocation of holes fast and keeps process memory contiguous | ||
| 298 | // in the emulator address space, allowing Memory::GetPointer to be reasonably safe. | ||
| 299 | std::shared_ptr<std::vector<u8>> heap_memory; | ||
| 300 | |||
| 301 | // The left/right bounds of the address space covered by heap_memory. | ||
| 302 | VAddr heap_start = 0; | ||
| 303 | VAddr heap_end = 0; | ||
| 304 | u64 heap_used = 0; | ||
| 305 | |||
| 306 | /// The Thread Local Storage area is allocated as processes create threads, | 295 | /// The Thread Local Storage area is allocated as processes create threads, |
| 307 | /// each TLS area is 0x200 bytes, so one page (0x1000) is split up in 8 parts, and each part | 296 | /// each TLS area is 0x200 bytes, so one page (0x1000) is split up in 8 parts, and each part |
| 308 | /// holds the TLS for a specific thread. This vector contains which parts are in use for each | 297 | /// holds the TLS for a specific thread. This vector contains which parts are in use for each |