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 committed 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);
}
}
// ================================================================================================