harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r639356 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/ia32_em64t/signals_common.cpp
Date Thu, 20 Mar 2008 16:56:15 GMT
Author: gshimansky
Date: Thu Mar 20 09:56:14 2008
New Revision: 639356

URL: http://svn.apache.org/viewvc?rev=639356&view=rev
Log:
Applied patch from HARMONY-5624
[drlvm][port][signals] Crash handler crashes on SIGSEGV processing in native thread


Modified:
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/ia32_em64t/signals_common.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/ia32_em64t/signals_common.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/ia32_em64t/signals_common.cpp?rev=639356&r1=639355&r2=639356&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/ia32_em64t/signals_common.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/ia32_em64t/signals_common.cpp Thu
Mar 20 09:56:14 2008
@@ -353,6 +353,10 @@
         regs->set_ip(new_ip);
     }
 
+    if (!vmthread || env == NULL ||
+        !is_in_java(regs) || interpreter_enabled())
+        return FALSE; // Crash
+
     if (check_stack_overflow(regs, fault_addr))
     {
         Boolean result = stack_overflow_handler(signum, regs, fault_addr);
@@ -362,10 +366,6 @@
 
         return result;
     }
-
-    if (!vmthread || env == NULL ||
-        !is_in_java(regs) || interpreter_enabled())
-        return FALSE; // Crash
 
     // Pass exception to NCAI exception handler
     bool is_handled = 0;



Mime
View raw message