You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by ge...@apache.org on 2006/09/16 02:31:55 UTC

svn commit: r446796 - /incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/jni/jni.cpp

Author: geirm
Date: Fri Sep 15 17:31:54 2006
New Revision: 446796

URL: http://svn.apache.org/viewvc?view=rev&rev=446796
Log:
HARMONY-1427

Looks like the mode in which exn_print_stack_trace works has changed. It is now suspend_enabled, and inside of this 
function there is an assertion that suspend is enabled. But the change was not applied to JNI ExceptionDescribe 
function. It still disables suspend when calling exn_print_stack_trace.

tested on ubuntu 6, smoke and c-unit ok, 


Modified:
    incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/jni/jni.cpp

Modified: incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/jni/jni.cpp
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/jni/jni.cpp?view=diff&rev=446796&r1=446795&r2=446796
==============================================================================
--- incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/jni/jni.cpp (original)
+++ incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/jni/jni.cpp Fri Sep 15 17:31:54 2006
@@ -613,10 +613,10 @@
     TRACE2("jni", "ExceptionDescribe called");
     assert(hythread_is_suspend_enabled());
     if (exn_raised()) {
-        tmn_suspend_disable();       //---------------------------------v
+//        tmn_suspend_disable();       //---------------------------------v
         fprintf(stderr, "JNI.ExceptionDescribe: %s:\n", exn_get_name());
         exn_print_stack_trace(stderr, exn_get());
-        tmn_suspend_enable();        //---------------------------------^
+//        tmn_suspend_enable();        //---------------------------------^
     }
 } //ExceptionDescribe