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

source_changes at macosforge.org source_changes at macosforge.org
Thu Sep 3 15:28:33 PDT 2009


Revision: 2464
          http://trac.macosforge.org/projects/ruby/changeset/2464
Author:   lsansonetti at apple.com
Date:     2009-09-03 15:28:33 -0700 (Thu, 03 Sep 2009)
Log Message:
-----------
when raising pure ruby exceptions, fall back on the low level c++ abi in case we run in 32-bit, because objc exceptions are not true c++ exception in this mode

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

Modified: MacRuby/trunk/vm.cpp
===================================================================
--- MacRuby/trunk/vm.cpp	2009-09-03 22:20:37 UTC (rev 2463)
+++ MacRuby/trunk/vm.cpp	2009-09-03 22:28:33 UTC (rev 2464)
@@ -4286,7 +4286,8 @@
 static inline void
 __vm_raise(void)
 {
-#if 1
+#if __LP64__
+    // In 64-bit, an Objective-C exception is a C++ exception.
     id exc = rb_objc_create_exception(GET_VM()->current_exception());
     objc_exception_throw(exc);
 #else
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090903/4fc45e11/attachment.html>


More information about the macruby-changes mailing list