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

source_changes at macosforge.org source_changes at macosforge.org
Fri Jun 18 15:45:37 PDT 2010


Revision: 4247
          http://trac.macosforge.org/projects/ruby/changeset/4247
Author:   lsansonetti at apple.com
Date:     2010-06-18 15:45:37 -0700 (Fri, 18 Jun 2010)
Log Message:
-----------
don't symbolicate in case the JIT memory manager isn't initialized yet

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

Modified: MacRuby/trunk/vm.cpp
===================================================================
--- MacRuby/trunk/vm.cpp	2010-06-18 22:41:50 UTC (rev 4246)
+++ MacRuby/trunk/vm.cpp	2010-06-18 22:45:37 UTC (rev 4247)
@@ -697,8 +697,11 @@
 #if MACRUBY_STATIC
     return false;
 #else
+    if (jmm == NULL) {
+	return false;
+    }
+
     void *start = NULL;
-
     RoxorFunction *f = jmm->find_function((unsigned char *)addr);
     if (f != NULL) {
 	if (f->imp == NULL) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100618/f9c38339/attachment.html>


More information about the macruby-changes mailing list