Commit Graph

842 Commits

Author SHA1 Message Date
David Harvey
3be9106018 remove Hololens from ExceptionHandling.h
- only one function used in one place, so easier to extern it directly.

#jira UE-149794
#rnx
#preflight 6290b15bf6668c14a3cc75d0
#rb pending

[CL 20392928 by David Harvey in ue5-main branch]
2022-05-27 10:09:47 -04:00
jeff newquist
7d1a83e840 Remove hardcoded NDA platform define. This can be defined for a game by specifying bAllowConfidentialPlatformDefines as a target rule.
#jira none
#fyi david.harvey
#preflight 628f7ba43437fe04a8586fa9

[CL 20392517 by jeff newquist in ue5-main branch]
2022-05-27 09:40:32 -04:00
jeff newquist
45350930a3 Remove NDA platform define references
#jira none
#rb rolando.caloca, david.harvey
#preflight 62880af3d1384beadd4de28b

[CL 20332798 by jeff newquist in ue5-main branch]
2022-05-23 13:53:51 -04:00
matt breindel
6114886c10 Introduce new FVirtualStackAllocator which provides alloca() type functionality backed by virtual memory. Only supported on platforms with support for manual virtual memory management.
[REVIEW] [at]*tim.tillotson
#rb steve.robb tim.tillotson
#preflight 62859e01614041edb7c36eed (failed for seemingly unrelated reasons)

#ROBOMERGE-AUTHOR: matt.breindel
#ROBOMERGE-SOURCE: CL 20284331 via CL 20284341 via CL 20284483 via CL 20284591
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v948-20297126)

[CL 20304687 by matt breindel in ue5-main branch]
2022-05-20 18:45:18 -04:00
dmytro vovk
55c0325532 Fixed a few issues in MallocBinned
#jira UE-132553
#rb Johan.Torp
#preflight 62852279571eb4bfb6f17961

[CL 20279928 by dmytro vovk in ue5-main branch]
2022-05-19 10:14:12 -04:00
David Harvey
9cc4146fbc move HoloLens runtime source to platform extension folder.
#jira UE-149794
#rnx
#rb Jeff.Fisher
#preflight 6284cd49614041edb76395dc

[CL 20258963 by David Harvey in ue5-main branch]
2022-05-18 06:59:59 -04:00
mickael gilabert
870f283d74 ThreadHeartBeat::OnHang broadcast OnHang delegate before triggering a memory exception. Delegate implementation will be called from the hang detector thread and not from the hung thread. Disabled in shipping build
[REVIEW] [at]ben.woodhouse
#rnx

#ROBOMERGE-AUTHOR: mickael.gilabert
#ROBOMERGE-SOURCE: CL 20167235 via CL 20168746 via CL 20169059 via CL 20169946 via CL 20170287
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20172493 by mickael gilabert in ue5-main branch]
2022-05-12 17:49:15 -04:00
mickael gilabert
68e0f62dfb Added UpdateStats stub to FPooledVirtualMemoryAllocator
#rb trivial

#ROBOMERGE-AUTHOR: mickael.gilabert
#ROBOMERGE-SOURCE: CL 20122245 via CL 20122306 via CL 20122319 via CL 20122327
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20123994 by mickael gilabert in ue5-main branch]
2022-05-10 11:39:29 -04:00
mickael gilabert
be3bc1ea71 Moved bookkeeping to beginning of large chunks so large page allocator could fallback to CachedPageOSAllocator without crashing at canary check
Improved very large page allocator to keep alive FreeList upon a certain amount of frames. this to prevent physical memory fragmentation

[REVIEW] [at]rob.millar, [at]eric.mcdaniel, [at]david.harvey
[FYI] ben.woodhouse, dave.barrett, john.huelin
#rnx

#ROBOMERGE-AUTHOR: mickael.gilabert
#ROBOMERGE-SOURCE: CL 20122059 via CL 20122066 via CL 20122077 via CL 20122086
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20123982 by mickael gilabert in ue5-main branch]
2022-05-10 11:39:10 -04:00
brian white
e4a8fdf4ff Remove PLATFORM_PRESENT_HANG_DETECTION_ON_BY_DEFAULT. The last remaining consumer of this was removed with a previous CL.
#jira UE-149080
#rb Joe.Barnes
#rnx
#preflight 6269ad722d28b9d0f756093c

[CL 19966928 by brian white in ue5-main branch]
2022-04-28 15:22:34 -04:00
martins mozeiko
0e1e107b8f Faster AES and SHA1 implementations using architecture speciifc instructions.
On x86 uses AESNI and SHA1 instructions detected with cpuid at runtime.
On ARMv8 uses NEON crypto instructions when enabled in compiler.

#rb fabian.giesen
#preflight 6269b1abcd0dacbe0e8c69b7

[CL 19948099 by martins mozeiko in ue5-main branch]
2022-04-27 17:52:21 -04:00
Jon Olick
7ab430f96e Bink: merge from 4.27Plus. Bink now uses RHI backend.
#preflight

[CL 19947421 by Jon Olick in ue5-main branch]
2022-04-27 17:28:31 -04:00
robert millar
1322c9d86a Allow platforms to opt-in to all-thread backtraces, defaulting to on for windows and mac still.
#rb none

#ROBOMERGE-AUTHOR: robert.millar
#ROBOMERGE-SOURCE: CL 19922292 via CL 19923462 via CL 19924366 via CL 19924765
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 19927861 by robert millar in ue5-main branch]
2022-04-26 16:26:32 -04:00
geoff evans
1981b2f5f3 StallDetector support for Linux
### Features

This change enables the StallDetector watchdog in Editor to submit reports to crashreporter about threads violating instrumented deadlines in the source code. This feature was available prior on Windows, and this change adds Linux support.

### Notes

New APIs:
ReportStall()
CaptureThreadPortableCallStack()

Many APIs are updated from purely "Ensure" naming to more general naming. Stalls are more like Ensures than crashes, and so the appropriate renames to make the code readable and clear have been made. In some places Ensure is replaced with the clearer: Continuable Event nomenclature.

### Testing

I synthesized an ensure on Linux, and did the same for a stall. I then compared crash report XML file to make sure they contain accurate data in the callstack, portable callstack, and other fields in the report. I also noted that the stall information was showing as expected in the crash reporter.

#rb brandon.schaefer, francis.hurteau
#jira UETOOL-3336
#preflight 625e20d2804460ab0fea3277

[CL 19911608 by geoff evans in ue5-main branch]
2022-04-25 19:19:04 -04:00
eric mcdaniel
11c6cd8b69 Remove support for PLATFORM_REQUIRES_UAV_TO_RTV_TEXTURE_CACHE_FLUSH_WORKAROUND
- this was working around a system level issue but we no longer support the older SDK versions which had the issue on the impacted platform

- testing
  - ran QAGame TM-DepthOfField on impacted platform as DoF was one of the passes which previously incurred the issue

#rb David.Harvey
#jira UE-124865
#preflight 62631b1d00654785f436a2c8

[CL 19902059 by eric mcdaniel in ue5-main branch]
2022-04-25 10:17:27 -04:00
paul chipchase
e76268cf88 Allow functions/methods that only take args and an output device as parameters to be bound to console commands. To to be used in cases where the UWorld* parameter is not required.
#rb PJ.Kack
#rnx
#preflight 625e7452b21bb49791e3c906

- In theory the callback could just take all 3 parameter types then ignore the world pointer but in many places this means forward declaring UWorld* then documenting why the parameter is ignored.
- Adding this permuation of callback will help keep code cleaner and too the point.

[CL 19805512 by paul chipchase in ue5-main branch]
2022-04-19 05:01:04 -04:00
josh adams
4b3db6c7ef - Restoring backed out files after a console runtime crash fix
#jira UE-149072
#rb trivial
#preflight 6259a794b53385f95492ff9a

[CL 19773983 by josh adams in ue5-main branch]
2022-04-15 13:29:14 -04:00
alex koumandarakis
c0f3b15a82 #8402 : PR : Add support for using poll instead of select in BSD sockets. Sockets will use poll by default (if supported by the platform), but this can be toggled with the USE_SOCKET_FEATURE_POLL macro.
#jira UE-126684
#rb Brian.Bekich, Brandon.Schaefer
#preflight 62585a33010ebc5d4e81eb25

[CL 19759812 by alex koumandarakis in ue5-main branch]
2022-04-14 13:46:36 -04:00
eric mcdaniel
18b365a120 [Backout] - CL19747101 & 19747861
- backing out due to boot failures on monolithic platforms

#preflight none - due to Horde issue
#fyi Josh.Adams

Original CL Desc
-----------------------------------------------------------------
- Adding more layers to the "get cvars for other platform" system: Scalability at a default level, and ConsoleVariables.ini
#rb simon.tovey
#jira none
#preflight 6255cb6d69015afc27bb670b
#fyi jack.porter

[CL 19751399 by eric mcdaniel in ue5-main branch]
2022-04-14 00:31:59 -04:00
Josh Adams
3c7bacdf57 - Adding more layers to the "get cvars for other platform" system: Scalability at a default level, and ConsoleVariables.ini
#rb simon.tovey
#jira none
#preflight 6255cb6d69015afc27bb670b
#fyi jack.porter

[CL 19747101 by Josh Adams in ue5-main branch]
2022-04-13 18:33:44 -04:00
Brandon Schaefer
88d5b893e5 Move a UE_LOG that happens before we check -logcmds to Verbose so we dont by default spam out to the log when we dont want to
Currently this is spamming for every ShaderCompilerWorker, the more cores the more spam.

#jira none
#rb none
#preflight none

[CL 19729224 by Brandon Schaefer in ue5-main branch]
2022-04-12 17:06:32 -04:00
eric mcdaniel
79237e0c20 Workaround for platforms which cannot utilize DiscardResource on fast clear RTs with typeless formats
- support doing a ClearRenderTargetView instead of a DiscardResource on typeless RTs as required by some platforms

#rb Benjamin.Rouveyrol, Kenzo.Terelst
#jira UE-146820
#preflight 624c7c218d1db441a910c490

[CL 19726097 by eric mcdaniel in ue5-main branch]
2022-04-12 14:44:17 -04:00
Arne Schober
b29643a2f4 M - Coroutines can change the TLS Thread Singleton, so we need to make sure that the value only cleans out TLS on destruction if it is still in TLS first.
#fyi Ilya.Loshchinin
#preflight 62524ccfa357afb6e66e3ef2

[CL 19701719 by Arne Schober in ue5-main branch]
2022-04-09 23:26:56 -04:00
Arne Schober
498b24891f M - C++ Coroutine Task implementation and support classes
#preflight 623bdeaa8900c14eecd8f1d6

[CL 19534082 by Arne Schober in ue5-main branch]
2022-03-28 17:45:21 -04:00
Devin Doucette
4c8630b6d8 RWLock: Fixed assertions in TryReadLock and TryWriteLock
We want to return false for EAGAIN and EDEADLK because these are cases that the caller can reasonably handle. Other errors (EINVAL and EFAULT) are now ignored and return false as well, because they are unlikely when FRWLock is used correctly.

#preflight 623b416eec68595f3b95303f
#rb Martin.Sevigny, Zousar.Shaker
#rnx

[CL 19481208 by Devin Doucette in ue5-main branch]
2022-03-23 12:59:21 -04:00