harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r598659 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/jvmti/jvmti.cpp
Date Tue, 27 Nov 2007 15:03:55 GMT
Author: gshimansky
Date: Tue Nov 27 07:03:55 2007
New Revision: 598659

URL: http://svn.apache.org/viewvc?rev=598659&view=rev
Log:
Fixed HARMONY-5175. On Linux hymutex is not recursive by default. It can lead to
deadlock when the thread tries to lock a mutext more than one. Patch makes mutex
explicitly recursive.


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

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/jvmti/jvmti.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/jvmti/jvmti.cpp?rev=598659&r1=598658&r2=598659&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/jvmti/jvmti.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/jvmti/jvmti.cpp Tue Nov 27 07:03:55 2007
@@ -251,7 +251,7 @@
 
     memset(newenv, 0, sizeof(TIEnv));
 
-    IDATA error_code1 = hymutex_create(&newenv->lock, 0/*HYTHREAD_MUTEX_DEFAULT*/);
+    IDATA error_code1 = hymutex_create(&newenv->lock, APR_THREAD_MUTEX_NESTED);
     if (error_code1 != APR_SUCCESS)
     {
         _deallocate((unsigned char *)newenv);



Mime
View raw message