before merge
This commit is contained in:
@@ -44,7 +44,6 @@ namespace StgSharp.HighPerformance.Memory
|
|||||||
|
|
||||||
public interface IL4Predict
|
public interface IL4Predict
|
||||||
{
|
{
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Planned optimization contract types:
|
* Planned optimization contract types:
|
||||||
* 1. internal interface IL4PredictOptimizationContract
|
* 1. internal interface IL4PredictOptimizationContract
|
||||||
@@ -62,14 +61,14 @@ namespace StgSharp.HighPerformance.Memory
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Determines whether a cache line materialized by <paramref name="predict" /> under
|
/// Determines whether a cache line materialized by <paramref name="predict" /> under <paramref
|
||||||
/// <paramref name="policy" /> can be adopted by the current predictor without an
|
/// name="policy" /> can be adopted by the current predictor without an intermediate
|
||||||
/// intermediate rematerialization.
|
/// rematerialization.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// This is intentionally stronger than comparing raw policy bits for equality. A true
|
/// This is intentionally stronger than comparing raw policy bits for equality. A true result
|
||||||
/// result means the resident bytes can continue to be interpreted safely after ownership
|
/// means the resident bytes can continue to be interpreted safely after ownership is transferred
|
||||||
/// is transferred to the current predictor.
|
/// to the current predictor.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
bool IsSamePolicy(
|
bool IsSamePolicy(
|
||||||
uint policy,
|
uint policy,
|
||||||
@@ -82,7 +81,7 @@ namespace StgSharp.HighPerformance.Memory
|
|||||||
);
|
);
|
||||||
|
|
||||||
/// <summary>
|
/// <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" />.
|
/// name="cache" />.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="origin">
|
/// <param name="origin">
|
||||||
@@ -162,8 +161,9 @@ namespace StgSharp.HighPerformance.Memory
|
|||||||
|
|
||||||
#pragma warning disable CA1051
|
#pragma warning disable CA1051
|
||||||
public nuint Address;
|
public nuint Address;
|
||||||
public uint MapPolicy;
|
public int Size;
|
||||||
internal uint Predictor;
|
public ushort MapPolicy;
|
||||||
|
internal short Predictor;
|
||||||
#pragma warning restore CA1051
|
#pragma warning restore CA1051
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ namespace StgSharp.HighPerformance.Memory
|
|||||||
"Design",
|
"Design",
|
||||||
"CA1063:Implement IDisposable correctly",
|
"CA1063:Implement IDisposable correctly",
|
||||||
Justification = """
|
Justification = """
|
||||||
Only owns native memory via NativeMemory.AlignedFree();
|
Only owns native memory via Numa.Free();
|
||||||
no managed IDisposable fields.
|
no managed IDisposable fields.
|
||||||
Dispose(bool) pattern is unnecessary.
|
Dispose(bool) pattern is unnecessary.
|
||||||
""")]
|
""")]
|
||||||
|
|||||||
Reference in New Issue
Block a user