You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
* 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]
31 lines
821 B
C#
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");
|
|
}
|
|
}
|
|
}
|