harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From regi...@apache.org
Subject svn commit: r797361 - /harmony/enhanced/jdktools/branches/java6/modules/jpda/src/main/native/jdwp/common/agent/core/EventDispatcher.cpp
Date Fri, 24 Jul 2009 08:38:29 GMT
Author: regisxu
Date: Fri Jul 24 08:38:28 2009
New Revision: 797361

URL: http://svn.apache.org/viewvc?rev=797361&view=rev
Log:
Push/PopLocalFrame in agent thread EventDispatcher to avoid memory leak


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

Modified: harmony/enhanced/jdktools/branches/java6/modules/jpda/src/main/native/jdwp/common/agent/core/EventDispatcher.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/jdktools/branches/java6/modules/jpda/src/main/native/jdwp/common/agent/core/EventDispatcher.cpp?rev=797361&r1=797360&r2=797361&view=diff
==============================================================================
--- harmony/enhanced/jdktools/branches/java6/modules/jpda/src/main/native/jdwp/common/agent/core/EventDispatcher.cpp
(original)
+++ harmony/enhanced/jdktools/branches/java6/modules/jpda/src/main/native/jdwp/common/agent/core/EventDispatcher.cpp
Fri Jul 24 08:38:28 2009
@@ -44,6 +44,7 @@
     MonitorAutoLock malCM(m_completeMonitor JDWP_FILE_LINE);
     
     while (!m_stopFlag) {
+        jni->PushLocalFrame(32);
         EventComposer *ec;
     
         // get next event from queue
@@ -76,6 +77,7 @@
             } 
             break;
         }
+        jni->PopLocalFrame(NULL);
     }
 
         // release completion monitor and wait forever until VM kills this thread



Mime
View raw message