chore: Update tests dependencies (#3978)
* chore: Update tests dependencies * Apply TSR Berry suggestion to add a GC.SuppressFinalize in MemoryBlock.cs * Ensure we wait for the test thread to be dead on PartialUnmap * Use platform attribute for os specific tests * Make P/Invoke methods private * Downgrade NUnit3TestAdapter to 4.1.0 * test: Disable warning about platform compat for ThreadLocalMap() Co-authored-by: TSR Berry <20988865+TSRBerry@users.noreply.github.com>
This commit is contained in:
parent
b1d4b174a6
commit
b6614c6ad5
5 changed files with 34 additions and 56 deletions
|
@ -379,7 +379,12 @@ namespace Ryujinx.Memory
|
|||
/// <remarks>
|
||||
/// It's an error to use the memory block after disposal.
|
||||
/// </remarks>
|
||||
public void Dispose() => FreeMemory();
|
||||
public void Dispose()
|
||||
{
|
||||
FreeMemory();
|
||||
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
~MemoryBlock() => FreeMemory();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue