Files
henrik karlsson 2d1a4b680c [UBA]
* Fixed read-after-free bug found by TSAN in StorageServer.cpp
* Fixed write-after-free bug found in UbaProcess.cpp (m_cancelEvent.Set() could be called after memory was freed)
* Lots of minor fixes found using TSAN. Most are harmless but still nice to cleanup
* Disabled mimalloc for linux again.. seems like tsan does not like it so maybe there are bugs in it

[CL 32485131 by henrik karlsson in 5.4 branch]
2024-03-25 17:12:41 -04:00

31 lines
821 B
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
using Microsoft.Extensions.Logging;
[SupportedPlatforms(UnrealPlatformClass.Desktop)]
[SupportedTargetTypes(TargetType.Program)]
public class UbaMimalloc : ModuleRules
{
public UbaMimalloc(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = PCHUsageMode.NoPCHs;
if (Target.Platform.IsInGroup(UnrealPlatformGroup.Windows))// || Target.Platform.IsInGroup(UnrealPlatformGroup.Linux))
{
PublicDependencyModuleNames.AddRange(new string[] {
"mimalloc212",
});
}
//PublicDefinitions.AddRange(new string[] {
// "UBA_USE_MIMALLOC=1", // compile in mimalloc
//});
if (Target.LinkType == TargetLinkType.Modular)
{
Logger.LogWarning("UbaMimalloc will not override allocation functions when linked Modular");
}
}
}