diff options
author | Jiyoung Yun <jy910.yun@samsung.com> | 2017-02-10 20:35:12 +0900 |
---|---|---|
committer | Jiyoung Yun <jy910.yun@samsung.com> | 2017-02-10 20:35:12 +0900 |
commit | 4b11dc566a5bbfa1378d6266525c281b028abcc8 (patch) | |
tree | b48831a898906734f8884d08b6e18f1144ee2b82 /src/mscorlib/Common/PinnableBufferCache.cs | |
parent | db20f3f1bb8595633a7e16c8900fd401a453a6b5 (diff) | |
download | coreclr-4b11dc566a5bbfa1378d6266525c281b028abcc8.tar.gz coreclr-4b11dc566a5bbfa1378d6266525c281b028abcc8.tar.bz2 coreclr-4b11dc566a5bbfa1378d6266525c281b028abcc8.zip |
Imported Upstream version 1.0.0.9910upstream/1.0.0.9910
Diffstat (limited to 'src/mscorlib/Common/PinnableBufferCache.cs')
-rw-r--r-- | src/mscorlib/Common/PinnableBufferCache.cs | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/mscorlib/Common/PinnableBufferCache.cs b/src/mscorlib/Common/PinnableBufferCache.cs index fc6e13a899..6c85a5a2f6 100644 --- a/src/mscorlib/Common/PinnableBufferCache.cs +++ b/src/mscorlib/Common/PinnableBufferCache.cs @@ -11,7 +11,6 @@ using System.Collections.Concurrent; using System.Threading; using System.Runtime.CompilerServices; using System.Diagnostics; -using System.Security.Permissions; #if PINNABLEBUFFERCACHE_MSCORLIB namespace System.Threading @@ -21,22 +20,6 @@ namespace System { internal sealed class PinnableBufferCache { - /// <summary> - /// Create a new cache for pinned byte[] buffers - /// </summary> - /// <param name="cacheName">A name used in diagnostic messages</param> - /// <param name="numberOfElements">The size of byte[] buffers in the cache (they are all the same size)</param> - public PinnableBufferCache(string cacheName, int numberOfElements) : this(cacheName, () => new byte[numberOfElements]) { } - - /// <summary> - /// Get a buffer from the buffer manager. If no buffers exist, allocate a new one. - /// </summary> - public byte[] AllocateBuffer() { return (byte[])Allocate(); } - - /// <summary> - /// Return a buffer back to the buffer manager. - /// </summary> - public void FreeBuffer(byte[] buffer) { Free(buffer); } /// <summary> /// Create a PinnableBufferCache that works on any object (it is intended for OverlappedData) @@ -537,9 +520,6 @@ namespace System public bool IsEnabled() { return false; } public void DebugMessage(string message) {} - public void DebugMessage1(string message, long value) {} - public void DebugMessage2(string message, long value1, long value2) {} - public void DebugMessage3(string message, long value1, long value2, long value3) {} public void Create(string cacheName) {} public void AllocateBuffer(string cacheName, ulong objectId, int objectHash, int objectGen, int freeCountAfter) {} public void AllocateBufferFromNotGen2(string cacheName, int notGen2CountAfter) {} @@ -560,10 +540,5 @@ namespace System { return 0; } - - static internal unsafe long AddressOfObject(byte[] array) - { - return 0; - } } } |