Ryujinx/Ryujinx.Common
riperiperi 14ce9e1567
Move partial unmap handler to the native signal handler (#3437)
* Initial commit with a lot of testing stuff.

* Partial Unmap Cleanup Part 1

* Fix some minor issues, hopefully windows tests.

* Disable partial unmap tests on macos for now

Weird issue.

* Goodbye magic number

* Add COMPlus_EnableAlternateStackCheck for tests

`COMPlus_EnableAlternateStackCheck` is needed for NullReferenceException handling to work on linux after registering the signal handler, due to how dotnet registers its own signal handler.

* Address some feedback

* Force retry when memory is mapped in memory tracking

This case existed before, but returning `false` no longer retries, so it would crash immediately after unprotecting the memory... Now, we return `true` to deliberately retry.

This case existed before (was just broken by this change) and I don't really want to look into fixing the issue right now. Technically, this means that on guest code partial unmaps will retry _due to this_ rather than hitting the handler. I don't expect this to cause any issues.

This should fix random crashes in Xenoblade Chronicles 2.

* Use IsRangeMapped

* Suppress MockMemoryManager.UnmapEvent warning

This event is not signalled by the mock memory manager.

* Remove 4kb mapping
2022-07-29 19:16:29 -03:00
..
Collections Support memory aliasing (#2954) 2022-05-02 20:30:02 -03:00
Configuration Avalonia: Another Cleanup (#3494) 2022-07-29 00:41:34 +02:00
Extensions Use Enum and Delegate.CreateDelegate generic overloads (#3111) 2022-02-13 10:50:07 -03:00
GraphicsDriver Convert the bool to a lowercase string (#3080) 2022-02-06 12:52:39 -03:00
Logging ntc: Implement IEnsureNetworkClockAvailabilityService (#3192) 2022-03-15 04:07:07 +01:00
Memory Move partial unmap handler to the native signal handler (#3437) 2022-07-29 19:16:29 -03:00
Pools Add a Multithreading layer for the GAL, multi-thread shader compilation at runtime (#2501) 2021-08-27 00:31:29 +02:00
System ForceDpiAware: X11 implementation (#3269) 2022-04-10 19:04:22 +02:00
SystemInfo Revise SystemInfo (#2047) 2021-03-01 15:22:00 +11:00
Utilities Rewrite kernel memory allocator (#3316) 2022-06-22 12:28:14 -03:00
AsyncWorkQueue.cs New NVDEC and VIC implementation (#1384) 2020-07-12 05:07:01 +02:00
Hash128.cs Add support for HLE macros and accelerate MultiDrawElementsIndirectCount #2 (#2557) 2021-08-26 23:50:28 +02:00
PerformanceCounter.cs Rewrite scheduler context switch code (#1786) 2020-12-09 19:20:05 -03:00
ReactiveObject.cs ReactiveObject: Handle case when oldValue is null (#3268) 2022-04-15 12:58:27 +02:00
ReferenceEqualityComparer.cs Only enumerate cached textures that are modified when flushing. (#918) 2020-02-07 08:49:26 +11:00
ReleaseInformations.cs Preparation for initial Flatpack and FlatHub integration (#3173) 2022-03-04 18:03:16 +01:00
Ryujinx.Common.csproj infra: Migrate to .NET 6 (#2829) 2021-11-28 21:24:17 +01:00
XXHash128.cs Use ReadOnlySpan<byte> compiler optimization for static data (#3130) 2022-02-17 21:38:50 +01:00