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 11:35:54 -04:00 提交
1 父节点 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);
}
}
// ================================================================================================