summaryrefslogtreecommitdiff
path: root/src/mscorlib/src/System/Runtime/GcSettings.cs
diff options
context:
space:
mode:
authorAlex Perovich <alperovi@microsoft.com>2017-02-22 15:23:44 -0800
committerAlex Perovich <alperovi@microsoft.com>2017-02-23 13:43:32 -0800
commitea9bee5ac2f96a1ea6b202dc4094b8d418d9209c (patch)
tree6ed2957084ed081ff2fce06d26d748b37b30165f /src/mscorlib/src/System/Runtime/GcSettings.cs
parent2ace58ac2bba14ffd469ecb89f972b8e9b8fd61d (diff)
downloadcoreclr-ea9bee5ac2f96a1ea6b202dc4094b8d418d9209c.tar.gz
coreclr-ea9bee5ac2f96a1ea6b202dc4094b8d418d9209c.tar.bz2
coreclr-ea9bee5ac2f96a1ea6b202dc4094b8d418d9209c.zip
Run codeformatter on S.P.CoreLib sources
Diffstat (limited to 'src/mscorlib/src/System/Runtime/GcSettings.cs')
-rw-r--r--src/mscorlib/src/System/Runtime/GcSettings.cs36
1 files changed, 19 insertions, 17 deletions
diff --git a/src/mscorlib/src/System/Runtime/GcSettings.cs b/src/mscorlib/src/System/Runtime/GcSettings.cs
index 11143c5ee2..834307190b 100644
--- a/src/mscorlib/src/System/Runtime/GcSettings.cs
+++ b/src/mscorlib/src/System/Runtime/GcSettings.cs
@@ -3,12 +3,13 @@
// See the LICENSE file in the project root for more information.
-namespace System.Runtime {
- using System;
- using System.Runtime.CompilerServices;
- using System.Runtime.ConstrainedExecution;
- using System.Diagnostics.Contracts;
+using System;
+using System.Runtime.CompilerServices;
+using System.Runtime.ConstrainedExecution;
+using System.Diagnostics.Contracts;
+namespace System.Runtime
+{
// These settings are the same format as in clr\src\vm\gcpriv.h
// make sure you change that file if you change this file!
@@ -22,30 +23,30 @@ namespace System.Runtime {
[Serializable]
public enum GCLatencyMode
{
- Batch = 0,
+ Batch = 0,
Interactive = 1,
LowLatency = 2,
SustainedLowLatency = 3,
NoGCRegion = 4
}
- public static class GCSettings
+ public static class GCSettings
{
- enum SetLatencyModeStatus
+ private enum SetLatencyModeStatus
{
Succeeded = 0,
NoGCInProgress = 1 // NoGCRegion is in progress, can't change pause mode.
};
-
+
public static GCLatencyMode LatencyMode
{
- get
+ get
{
return (GCLatencyMode)(GC.GetGCLatencyMode());
}
// We don't want to allow this API when hosted.
- set
+ set
{
if ((value < GCLatencyMode.Batch) || (value > GCLatencyMode.SustainedLowLatency))
{
@@ -60,15 +61,15 @@ namespace System.Runtime {
public static GCLargeObjectHeapCompactionMode LargeObjectHeapCompactionMode
{
- get
+ get
{
return (GCLargeObjectHeapCompactionMode)(GC.GetLOHCompactionMode());
}
// We don't want to allow this API when hosted.
- set
+ set
{
- if ((value < GCLargeObjectHeapCompactionMode.Default) ||
+ if ((value < GCLargeObjectHeapCompactionMode.Default) ||
(value > GCLargeObjectHeapCompactionMode.CompactOnce))
{
throw new ArgumentOutOfRangeException(Environment.GetResourceString("ArgumentOutOfRange_Enum"));
@@ -79,11 +80,12 @@ namespace System.Runtime {
}
}
- public static bool IsServerGC
+ public static bool IsServerGC
{
- get {
+ get
+ {
return GC.IsServerGC();
}
- }
+ }
}
}