mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Do not use virtual functions in constructor.
Change-Id: Ic720843b3b290b234577e1bc4913dfc07a75733c
This commit is contained in:
committed by
sys_ocldev
parent
60a8aa1b17
commit
75d883c075
@@ -49,13 +49,13 @@ DrmMemoryManager::DrmMemoryManager(Drm *drm, gemCloseWorkerMode mode, bool force
|
||||
}
|
||||
|
||||
if (forcePinAllowed) {
|
||||
auto mem = alignedMallocWrapper(MemoryConstants::pageSize, MemoryConstants::pageSize);
|
||||
auto mem = alignedMalloc(MemoryConstants::pageSize, MemoryConstants::pageSize);
|
||||
DEBUG_BREAK_IF(mem == nullptr);
|
||||
|
||||
pinBB = allocUserptr(reinterpret_cast<uintptr_t>(mem), MemoryConstants::pageSize, 0, true);
|
||||
|
||||
if (!pinBB) {
|
||||
alignedFreeWrapper(mem);
|
||||
alignedFree(mem);
|
||||
} else {
|
||||
pinBB->isAllocated = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user