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

github.com/mono/ikvm-fork.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjfrijters <jfrijters>2015-06-20 07:58:46 +0300
committerjfrijters <jfrijters>2015-06-20 07:58:46 +0300
commit6d651b37fdba457a7f94b18bde724ee78dd5b453 (patch)
tree0407f523a33336af0b33b6ae730262b156c429d6
parent3b15615c07b85a16d391119299ba819d0b9a537e (diff)
Removed unnecessary finishing of base TypeWrapper and interfaces from CompiledTypeWrapper and DotNetTypeWrapper.
-rw-r--r--runtime/DotNetTypeWrapper.cs23
-rw-r--r--runtime/TypeWrapper.cs8
2 files changed, 0 insertions, 31 deletions
diff --git a/runtime/DotNetTypeWrapper.cs b/runtime/DotNetTypeWrapper.cs
index efcce048..94034749 100644
--- a/runtime/DotNetTypeWrapper.cs
+++ b/runtime/DotNetTypeWrapper.cs
@@ -57,7 +57,6 @@ namespace IKVM.Internal
private volatile TypeWrapper[] innerClasses;
private TypeWrapper outerClass;
private volatile TypeWrapper[] interfaces;
- private volatile bool finished;
private static Modifiers GetModifiers(Type type)
{
@@ -2784,28 +2783,6 @@ namespace IKVM.Internal
internal override void Finish()
{
- // we don't need locking, because Finish and Link are idempotent
- if (finished)
- {
- return;
- }
- if (BaseTypeWrapper != null)
- {
- BaseTypeWrapper.Finish();
- }
- foreach (TypeWrapper tw in this.Interfaces)
- {
- tw.Finish();
- }
- foreach (MethodWrapper mw in GetMethods())
- {
- mw.Link();
- }
- foreach (FieldWrapper fw in GetFields())
- {
- fw.Link();
- }
- finished = true;
}
internal override MethodParametersEntry[] GetMethodParameters(MethodWrapper mw)
diff --git a/runtime/TypeWrapper.cs b/runtime/TypeWrapper.cs
index 038ea0e5..5d4e0be6 100644
--- a/runtime/TypeWrapper.cs
+++ b/runtime/TypeWrapper.cs
@@ -5110,14 +5110,6 @@ namespace IKVM.Internal
internal override void Finish()
{
- if(BaseTypeWrapper != null)
- {
- BaseTypeWrapper.Finish();
- }
- foreach(TypeWrapper tw in this.Interfaces)
- {
- tw.Finish();
- }
}
#if EMITTERS