harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From regi...@apache.org
Subject svn commit: r959494 - /harmony/enhanced/java/branches/java6/jdktools/modules/jpda/src/main/native/jdwp/common/agent/core/PacketDispatcher.cpp
Date Thu, 01 Jul 2010 03:10:28 GMT
Author: regisxu
Date: Thu Jul  1 03:10:28 2010
New Revision: 959494

URL: http://svn.apache.org/viewvc?rev=959494&view=rev
Log:
Do not rest modules when "connect" failed in server mode, because session is not
created yet, so that jdwp could wait for further clients.

Modified:
    harmony/enhanced/java/branches/java6/jdktools/modules/jpda/src/main/native/jdwp/common/agent/core/PacketDispatcher.cpp

Modified: harmony/enhanced/java/branches/java6/jdktools/modules/jpda/src/main/native/jdwp/common/agent/core/PacketDispatcher.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/jdktools/modules/jpda/src/main/native/jdwp/common/agent/core/PacketDispatcher.cpp?rev=959494&r1=959493&r2=959494&view=diff
==============================================================================
--- harmony/enhanced/java/branches/java6/jdktools/modules/jpda/src/main/native/jdwp/common/agent/core/PacketDispatcher.cpp
(original)
+++ harmony/enhanced/java/branches/java6/jdktools/modules/jpda/src/main/native/jdwp/common/agent/core/PacketDispatcher.cpp
Thu Jul  1 03:10:28 2010
@@ -90,15 +90,7 @@ PacketDispatcher::Run(JNIEnv *jni)
                 JDWP_TRACE(LOG_RELEASE, (LOG_ERROR_FL, "Run: Exception in connection: %s",
aex.GetExceptionMessage(jni)));
                 /* In server case, attempt to reaccept while the VM is alive */
                 if (AgentBase::GetOptionParser().GetServer()) {
-                    ret = ResetAll(jni);
-                    if (ret != JDWP_ERROR_NONE) {
-                        AgentException aex = GetExceptionManager().GetLastException();
-                        JDWP_TRACE(LOG_RELEASE, (LOG_ERROR_FL, "Error calling ResetAll():
%s", aex.GetExceptionMessage(jni)));
-                        if (!IsDead()) {                                            
-                            ::exit(1);
-                        }
-                        break;
-                    }
+                    // do not need to reset modules, because the session is not created yet
                     continue;
                 }
                 ::exit(1);



Mime
View raw message