SWDEV-558080 - Add recommended granularity (#1176)
* Add recommended granularity * Improve granularity testing * Update based on feedback
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
422253f871
Коммит
d849b88aef
@@ -51,7 +51,7 @@ bool VmHeap::ReleaseAddressRange(void* addr) {
|
||||
// ================================================================================================
|
||||
bool VmHeap::CommitMemory(void* addr, size_t size) {
|
||||
const auto& dev_info = device_->info();
|
||||
size_t granularity = dev_info.virtualMemAllocGranularity_;
|
||||
size_t granularity = dev_info.virtualMemAllocGranularityRecommended_;
|
||||
auto padded_size = alignUp(size, granularity);
|
||||
|
||||
// Allocate physical memory
|
||||
|
||||
Ссылка в новой задаче
Block a user