You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by gs...@apache.org on 2006/11/09 22:26:59 UTC

svn commit: r473077 - /incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/jvmti/jvmti_event.cpp

Author: gshimansky
Date: Thu Nov  9 13:26:58 2006
New Revision: 473077

URL: http://svn.apache.org/viewvc?view=rev&rev=473077
Log:
Applied HARMONY-2123 [drlvm][jvmti] Fix !hythread_is_suspend_enabled() assertion in jvmti_send_class_load_event()

Tests passed on gentoo linux and windows xp


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

Modified: incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/jvmti/jvmti_event.cpp
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/jvmti/jvmti_event.cpp?view=diff&rev=473077&r1=473076&r2=473077
==============================================================================
--- incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/jvmti/jvmti_event.cpp (original)
+++ incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/jvmti/jvmti_event.cpp Thu Nov  9 13:26:58 2006
@@ -1527,9 +1527,10 @@
     }
 
     JNIEnv *jni_env = p_TLS_vmthread->jni_env;
-    ObjectHandle hThread = oh_allocate_local_handle();
     ObjectHandle hClass = struct_Class_to_jclass(clss);
+
     tmn_suspend_disable();
+    ObjectHandle hThread = oh_allocate_local_handle();
     hThread->object = (Java_java_lang_Thread *)jthread_get_java_thread(hythread_self())->object;
     tmn_suspend_enable();