harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arc...@apache.org
Subject svn commit: r365428 - /incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/thread.c
Date Mon, 02 Jan 2006 20:50:16 GMT
Author: archie
Date: Mon Jan  2 12:50:14 2006
New Revision: 365428

URL: http://svn.apache.org/viewcvs?rev=365428&view=rev
Log:
Small optimziation: avoid unnecessary function call.

Modified:
    incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/thread.c

Modified: incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/thread.c
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/thread.c?rev=365428&r1=365427&r2=365428&view=diff
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/thread.c (original)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/thread.c Mon Jan
 2 12:50:14 2006
@@ -96,7 +96,8 @@
 		_jc_thread_suspend(env);
 
 	/* Check for an exception posted by another thread */
-	if ((ex = _jc_retrieve_cross_exception(env)) != NULL) {
+	if (env->cross_exception != NULL
+	    && (ex = _jc_retrieve_cross_exception(env)) != NULL) {
 		VERBOSE(EXCEPTIONS, vm, "cross-posting `%s' in thread %p",
 		    ex->type->name, env);
 		env->pending = ex;



Mime
View raw message