[Mono-bugs] [Bug 27796][Nor] Changed - patch to speed to mono_class_vtable

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
16 Jul 2002 09:20:07 -0000


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by vargaz@freemail.hu.

http://bugzilla.ximian.com/show_bug.cgi?id=27796

--- shadow/27796	Tue Jul 16 04:19:36 2002
+++ shadow/27796.tmp.11086	Tue Jul 16 05:20:07 2002
@@ -130,6 +130,15 @@
      class->cached_vtable = vtable;
 
 How does that sound? It should be race-free and avoid the lock at the
 same time.
 
 
+
+------- Additional Comments From vargaz@freemail.hu  2002-07-16 05:20 -------
+Looks good to me, but you need to add a null check to the condition:
+
+if (cached && cached->class == class && cached->domain == domain)
+    return cached;
+
+I have to go on a holiday so I won't be able to comment on this for
+about a week. Have fun with the patch.