Commit Graph

8 Commits

Author SHA1 Message Date
joe kirchoff
14cd6cf583 Create external module for mimalloc and move into versioned directory
[CL 28780083 by joe kirchoff in ue5-main branch]
2023-10-13 19:46:38 -04:00
danny couture
f358a5d8a4 Include mimalloc compilation as part of the core module instead of relying on prebuilt binaries
- This will make maintenance for multiple platforms a lot easier (i.e. just preflight)
  - Will be easy to get callstack and debug since it will be compiled on the machine it is debugged on
  - Easier to try out modifications on mimalloc itself
  - Fix mimalloc compilation under Clang 10
  - Fix mimalloc inconsistent usage of MI_ENCODE_FREELIST define
  - Fix mimalloc inconsistent usage of _WIN32 define
  - Implement MacOS and Unix -mimalloc command-line switch

- Some MacOS changes were contributed by Will.Damon

#rb Brandon.Schaefer, Will.Damon
#preflight 60b4ea613c6c4e000158233e
#rnx

[CL 16512512 by danny couture in ue5-main branch]
2021-06-01 05:35:42 -04:00
Josh Adams
b0e4357576 - UBT Code changes to remove 32-bit Windows support (C++ code for 32-bit still exists)
#rb marc.audy (concept, not each file)

[CL 15265424 by Josh Adams in ue5-main branch]
2021-01-31 15:09:58 -04:00
stefan boberg
834cfb3532 Fixed mimalloc build script to properly handle builds that do not use the debug CRT. So both SCW and Editor should now build properly in Debug
#jira UE-89981
#rb link.exe

#ROBOMERGE-SOURCE: CL 11897896 in //UE4/Release-4.25/... via CL 11897921
#ROBOMERGE-BOT: RELEASE (Release-4.25Plus -> Main) (v656-11643781)

[CL 11897947 by stefan boberg in Main branch]
2020-03-04 12:13:24 -05:00
stefan boberg
85f1a0cc6c Fixed windows Debug build issue with mimalloc
#rb none
#jira UE-89981

#ROBOMERGE-SOURCE: CL 11880311 in //UE4/Release-4.25/... via CL 11880318
#ROBOMERGE-BOT: RELEASE (Release-4.25Plus -> Main) (v656-11643781)

[CL 11880329 by stefan boberg in Main branch]
2020-03-03 14:45:53 -05:00
eric mcdaniel
b1ebccac9a Align inclusion of mimalloc include path and lib with the PLATFORM_SUPPORTS_MIMALLOC define in WindowsPlatform.h
#jira none
#rb david.harvey

#ROBOMERGE-SOURCE: CL 11507986 in //UE4/Release-4.25/...
#ROBOMERGE-BOT: RELEASE (Release-4.25 -> Release-4.25Plus) (v654-11333218)

[CL 11507987 by eric mcdaniel in 4.25-Plus branch]
2020-02-18 13:43:46 -05:00
paul chipchase
8267e8d0b9 Update copyright notice to the new format
#rnx
#rb trivial

[CL 11152119 by paul chipchase in Dev-Core branch]
2020-01-29 02:17:45 -05:00
Stefan Boberg
8f0e83305e Added mimalloc allocator from https://github.com/microsoft/mimalloc
Performs better than mimalloc in cooker benchmarks, but we still default to TBB malloc until the behaviour has been explored in more depth

To opt in to mimalloc, pass -mimalloc on the command line

#rb none

[CL 11114787 by Stefan Boberg in Dev-Core branch]
2020-01-27 07:08:26 -05:00