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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2006-04-20 20:32:38 +0400
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2006-04-20 20:32:38 +0400
commiteee8a87b49f50ce6fa304a8e21e2d7a1dc5b6dea (patch)
treed606a2021e298390ba60fccb631a156f02f02c89 /mcs/class/System.Web/System.Web.Compilation/CachingCompiler.cs
parent5a07802f6400519c365ad0fae58864eaadb72856 (diff)
2006-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* CachingCompiler.cs: no need to play the Wait/PulseAll game, as we already acquired the lock even when we might have not created the 'key' to the compilation ticket. svn path=/trunk/mcs/; revision=59705
Diffstat (limited to 'mcs/class/System.Web/System.Web.Compilation/CachingCompiler.cs')
-rw-r--r--mcs/class/System.Web/System.Web.Compilation/CachingCompiler.cs18
1 files changed, 0 insertions, 18 deletions
diff --git a/mcs/class/System.Web/System.Web.Compilation/CachingCompiler.cs b/mcs/class/System.Web/System.Web.Compilation/CachingCompiler.cs
index 1986af7da64..72b14133437 100644
--- a/mcs/class/System.Web/System.Web.Compilation/CachingCompiler.cs
+++ b/mcs/class/System.Web/System.Web.Compilation/CachingCompiler.cs
@@ -83,10 +83,6 @@ namespace System.Web.Compilation
try {
Monitor.Enter (ticket);
-
- if (!acquired)
- Monitor.Wait (ticket);
-
results = (CompilerResults) cache [key];
#if NET_2_0
if (!compiler.IsRebuildingPartial)
@@ -98,8 +94,6 @@ namespace System.Web.Compilation
results = comp.CompileAssemblyFromDom (compiler.CompilerParameters, compiler.Unit);
string [] deps = (string []) compiler.Parser.Dependencies.ToArray (typeof (string));
cache.InsertPrivate (key, results, new CacheDependency (deps));
-
- Monitor.PulseAll (ticket);
} finally {
Monitor.Exit (ticket);
if (acquired)
@@ -122,10 +116,6 @@ namespace System.Web.Compilation
try {
Monitor.Enter (ticket);
-
- if (!acquired)
- Monitor.Wait (ticket);
-
results = (CompilerResults) cache [key];
if (results != null)
return results;
@@ -136,8 +126,6 @@ namespace System.Web.Compilation
results = compiler.Compiler.CompileAssemblyFromFile (options, compiler.InputFile);
string [] deps = (string []) parser.Dependencies.ToArray (typeof (string));
cache.InsertPrivate (key, results, new CacheDependency (deps));
-
- Monitor.PulseAll (ticket);
} finally {
Monitor.Exit (ticket);
if (acquired)
@@ -175,10 +163,6 @@ namespace System.Web.Compilation
try {
Monitor.Enter (ticket);
-
- if (!acquired)
- Monitor.Wait (ticket);
-
results = (CompilerResults) cache [cachePrefix + key];
if (results != null)
return results;
@@ -212,8 +196,6 @@ namespace System.Web.Compilation
string [] deps = (string []) realdeps.ToArray (typeof (string));
cache.InsertPrivate (cachePrefix + key, results, new CacheDependency (deps));
-
- Monitor.PulseAll (ticket);
} finally {
Monitor.Exit (ticket);
if (acquired)