before merge

This commit is contained in:
Youmu Liu
2026-04-20 13:31:36 +08:00
parent f2560f3d5b
commit 501bd583e2
2 changed files with 11 additions and 11 deletions
@@ -44,7 +44,6 @@ namespace StgSharp.HighPerformance.Memory
public interface IL4Predict
{
/*
* Planned optimization contract types:
* 1. internal interface IL4PredictOptimizationContract
@@ -62,14 +61,14 @@ namespace StgSharp.HighPerformance.Memory
*/
/// <summary>
/// Determines whether a cache line materialized by <paramref name="predict" /> under
/// <paramref name="policy" /> can be adopted by the current predictor without an
/// intermediate rematerialization.
/// Determines whether a cache line materialized by <paramref name="predict" /> under <paramref
/// name="policy" /> can be adopted by the current predictor without an intermediate
/// rematerialization.
/// </summary>
/// <remarks>
/// This is intentionally stronger than comparing raw policy bits for equality. A true
/// result means the resident bytes can continue to be interpreted safely after ownership
/// is transferred to the current predictor.
/// This is intentionally stronger than comparing raw policy bits for equality. A true result
/// means the resident bytes can continue to be interpreted safely after ownership is transferred
/// to the current predictor.
/// </remarks>
bool IsSamePolicy(
uint policy,
@@ -82,7 +81,7 @@ namespace StgSharp.HighPerformance.Memory
);
/// <summary>
/// Materializes the cache line identified by <paramref name="origin" /> into <paramref
/// Materializes the cache line identified by <paramref name="origin" /> into <paramref ///
/// name="cache" />.
/// </summary>
/// <param name="origin">
@@ -162,8 +161,9 @@ namespace StgSharp.HighPerformance.Memory
#pragma warning disable CA1051
public nuint Address;
public uint MapPolicy;
internal uint Predictor;
public int Size;
public ushort MapPolicy;
internal short Predictor;
#pragma warning restore CA1051
}
}
+1 -1
View File
@@ -111,7 +111,7 @@ namespace StgSharp.HighPerformance.Memory
"Design",
"CA1063:Implement IDisposable correctly",
Justification = """
Only owns native memory via NativeMemory.AlignedFree();
Only owns native memory via Numa.Free();
no managed IDisposable fields.
Dispose(bool) pattern is unnecessary.
""")]