[macruby-changes] [3936] MacRuby/trunk/vm.cpp

source_changes at macosforge.org source_changes at macosforge.org
Wed Apr 14 19:02:20 PDT 2010


Revision: 3936
          http://trac.macosforge.org/projects/ruby/changeset/3936
Author:   lsansonetti at apple.com
Date:     2010-04-14 19:02:19 -0700 (Wed, 14 Apr 2010)
Log Message:
-----------
when preparing a method, do an extra resolve pass in case the objc cache is invalid

Modified Paths:
--------------
    MacRuby/trunk/vm.cpp

Modified: MacRuby/trunk/vm.cpp
===================================================================
--- MacRuby/trunk/vm.cpp	2010-04-15 02:01:47 UTC (rev 3935)
+++ MacRuby/trunk/vm.cpp	2010-04-15 02:02:19 UTC (rev 3936)
@@ -2131,6 +2131,11 @@
 prepare_method:
 
     m = class_getInstanceMethod(klass, sel);
+    if (m == NULL && rb_vm_resolve_method(klass, sel)) {
+	m = class_getInstanceMethod(klass, sel);
+	assert(m != NULL);
+    }
+
     if (precompiled) {
 	if (imp == NULL) {
 	    imp = (IMP)data;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100414/d59adafb/attachment-0001.html>


More information about the macruby-changes mailing list