subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1366215 - /subversion/trunk/subversion/bindings/javahl/native/JNIUtil.cpp
Date Thu, 26 Jul 2012 22:37:50 GMT
Author: rhuijben
Date: Thu Jul 26 22:37:50 2012
New Revision: 1366215

URL: http://svn.apache.org/viewvc?rev=1366215&view=rev
Log:
Enable returning an error on malfunctions for JavaHL. We shouldn't
crash the JVM unless absolutely necessary as this might make users
of tools like Subclipse loose their work.

* subversion/bindings/javahl/native/JNIUtil.cpp
  (JNIGlobalInit): Set malfunction handler.

Modified:
    subversion/trunk/subversion/bindings/javahl/native/JNIUtil.cpp

Modified: subversion/trunk/subversion/bindings/javahl/native/JNIUtil.cpp
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/javahl/native/JNIUtil.cpp?rev=1366215&r1=1366214&r2=1366215&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/javahl/native/JNIUtil.cpp (original)
+++ subversion/trunk/subversion/bindings/javahl/native/JNIUtil.cpp Thu Jul 26 22:37:50 2012
@@ -240,6 +240,8 @@ bool JNIUtil::JNIGlobalInit(JNIEnv *env)
     }
 #endif
 
+  svn_error_set_malfunction_handler(svn_error_raise_on_malfunction);
+
   // Build all mutexes.
   g_finalizedObjectsMutex = new JNIMutex(g_pool);
   if (isExceptionThrown())



Mime
View raw message