Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorMike Krüger <mikkrg@microsoft.com>2018-02-28 16:11:13 +0300
committerMike Krüger <mikkrg@microsoft.com>2018-02-28 16:11:13 +0300
commit88fb7b541bf2f6ff3dea390c2907fb9121d5c5b0 (patch)
tree0111ec9bf3978fde9d5467f306cfad5b6f36bba1 /main/src
parent0fc14db47399a03cd4cd22acdf12682d72bfca40 (diff)
[Core] Optimize SyntaxMatch allocation.
The object allocations are not needed here and only produce memory traffic.
Diffstat (limited to 'main/src')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor.Highlighting/SyntaxHighlightingDefinition.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor.Highlighting/SyntaxHighlightingDefinition.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor.Highlighting/SyntaxHighlightingDefinition.cs
index 94f738862e..e42d359ea1 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor.Highlighting/SyntaxHighlightingDefinition.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor.Highlighting/SyntaxHighlightingDefinition.cs
@@ -340,7 +340,7 @@ namespace MonoDevelop.Ide.Editor.Highlighting
bool hasRegex;
Regex cachedRegex;
- object lockObj = new object ();
+ static readonly object lockObj = new object ();
internal Regex GetRegex ()
{