SWDEV-486602 - Fix Windows 32 bit build
Windows alings fields to 8 bytes even with 32bit builds. Add BUG_CLR_SYSMEM_POOL to cotnrol sysmempool. Change-Id: I8622aabc9f7391ed7dd8583b252ce9eb41d62293
Этот коммит содержится в:
@@ -321,12 +321,20 @@ Command::Command(HostQueue& queue, cl_command_type type, const EventWaitList& ev
|
||||
SysmemPool<ComputeCommand>* Command::command_pool_ = new SysmemPool<ComputeCommand>;
|
||||
// ================================================================================================
|
||||
void Command::operator delete(void* ptr) {
|
||||
return command_pool_->Free(ptr);
|
||||
if (DEBUG_CLR_SYSMEM_POOL) {
|
||||
command_pool_->Free(ptr);
|
||||
} else {
|
||||
::operator delete (ptr);
|
||||
}
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
void* Command::operator new(size_t size) {
|
||||
return command_pool_->Alloc(size);
|
||||
if (DEBUG_CLR_SYSMEM_POOL) {
|
||||
return command_pool_->Alloc(size);
|
||||
} else {
|
||||
return ::operator new (size);
|
||||
}
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
|
||||
Ссылка в новой задаче
Block a user