summaryrefslogtreecommitdiff
path: root/src/mscorlib/shared/System.Private.CoreLib.Shared.projitems
diff options
context:
space:
mode:
authorJeremy Kuhne <jeremy.kuhne@microsoft.com>2018-04-10 22:25:49 -0700
committerGitHub <noreply@github.com>2018-04-10 22:25:49 -0700
commita2508f048ccd41d5893275697b73fef39c2497f3 (patch)
tree4005ba40dccb750b03bea8decc56d4c3ef21c9b9 /src/mscorlib/shared/System.Private.CoreLib.Shared.projitems
parent76620c6dd5b340b2ac2c4e01b855b93ce18bf28a (diff)
downloadcoreclr-a2508f048ccd41d5893275697b73fef39c2497f3.tar.gz
coreclr-a2508f048ccd41d5893275697b73fef39c2497f3.tar.bz2
coreclr-a2508f048ccd41d5893275697b73fef39c2497f3.zip
Simple trim of ArrayPool buffers (#17078)
* Simple trim of ArrayPool buffers Trim ArrayPool buffers on Gen2 GC if the buffer stack hasn't been emptied for awhile. If you haven't pulled all of the buffers in the past 10 seconds, let loose the top buffer on the stack and give the stack another 2 seconds of potential life. When the stack gets it's bottom bufferr returned the clock resets. * Collect thread locals as well * Add event * Incorporate memory pressure into trimming. Idea is that we normally give buckets a minute of age time unless the pressure starts to ramp up. As it ramps up we'll trim more off the stacks. If it gets really high we'll consider stale to be 10s instead of 1 min. * Add implementation back for PinnableBufferCacheEventSource. * Remove security attribute. Fix GetMemoryInfo signature * Always use Tls* for shared pools Add environment variable switch * Add guid to PinnableBufferCacheEventSource * Address feedback - move setting code to CLRConfig - add constructor to PBCES - trim large arrays more aggressively - tweak names (ticks to ms, etc.) - interlock creating the cleanup callback - fix project file Rent/return perf numbers are unchanged * Remove static constructor Inline Unsafe.SizeOf * Fix spacing issue * Trim all thread locals when memory pressure is high. Move constants inline. * Undo formatting changes * Add back the internal call * Put the right bits back *sigh* * Missing the line feed * Add event for trim polling * Undo PinnableBufferCacheEventSource reimplementation
Diffstat (limited to 'src/mscorlib/shared/System.Private.CoreLib.Shared.projitems')
-rw-r--r--src/mscorlib/shared/System.Private.CoreLib.Shared.projitems2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mscorlib/shared/System.Private.CoreLib.Shared.projitems b/src/mscorlib/shared/System.Private.CoreLib.Shared.projitems
index 542c91e2f6..20990e5f1f 100644
--- a/src/mscorlib/shared/System.Private.CoreLib.Shared.projitems
+++ b/src/mscorlib/shared/System.Private.CoreLib.Shared.projitems
@@ -131,6 +131,7 @@
<Compile Include="$(MSBuildThisFileDirectory)System\FlagsAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\FormatException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\FormattableString.cs" />
+ <Compile Include="$(MSBuildThisFileDirectory)System\Gen2GcCallback.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\BidiCategory.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\Calendar.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Globalization\CalendarAlgorithmType.cs" />
@@ -425,6 +426,7 @@
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\YieldAwaitable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\ConstrainedExecution\Cer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\ConstrainedExecution\Consistency.cs" />
+ <Compile Include="$(MSBuildThisFileDirectory)System\Runtime\ConstrainedExecution\CriticalFinalizerObject.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\ConstrainedExecution\ReliabilityContractAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\ExceptionServices\ExceptionNotification.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\ExceptionServices\HandleProcessCorruptedStateExceptionsAttribute.cs" />