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


[ROCm/clr commit: 6bb7d1afdc]
此提交包含在:
German Andryeyev
2024-10-18 09:46:24 -04:00
父節點 830c72e286
當前提交 4a2687a450
共有 3 個檔案被更改,包括 18 行新增6 行删除
+10 -2
查看文件
@@ -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);
}
}
// ================================================================================================