summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/kernel
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2011-01-09 03:39:08 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2011-01-09 03:39:08 +0000
commit2e9c610931b4e0a6bab25b1fe5dbd0def45ee126 (patch)
tree1c740e32afcfc6570b5e87d179c12854ea4f686c /sca-cpp/trunk/kernel
parentd2a4018d6c354a75e45800f90f45d09469bc4db5 (diff)
Fix memory leak in Python runtime integration. Reduce memory consumption of debug trace functions. Add trace points to help track the lifecycle of some of the runtime context objects.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1056880 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/kernel')
-rw-r--r--sca-cpp/trunk/kernel/config.hpp2
-rw-r--r--sca-cpp/trunk/kernel/fstream.hpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/sca-cpp/trunk/kernel/config.hpp b/sca-cpp/trunk/kernel/config.hpp
index 195612428e..f700829fa5 100644
--- a/sca-cpp/trunk/kernel/config.hpp
+++ b/sca-cpp/trunk/kernel/config.hpp
@@ -43,7 +43,7 @@ namespace tuscany
/**
* Add string watch members to important classes to help watch them in a debugger.
*/
-#define WANT_MAINTAINER_WATCH
+//#define WANT_MAINTAINER_WATCH
/**
* Increment / decrement a debug counter.
diff --git a/sca-cpp/trunk/kernel/fstream.hpp b/sca-cpp/trunk/kernel/fstream.hpp
index 99fc51565f..d57de2d76a 100644
--- a/sca-cpp/trunk/kernel/fstream.hpp
+++ b/sca-cpp/trunk/kernel/fstream.hpp
@@ -229,6 +229,7 @@ logfstream cdebug(stderr, "debug");
* Log a debug message.
*/
const bool debugLog(const string& msg) {
+ gc_scoped_pool();
cdebug << msg << endl;
return true;
}
@@ -237,6 +238,7 @@ const bool debugLog(const string& msg) {
* Log a debug message and a value.
*/
template<typename V> const bool debugLog(const V& v, const string& msg) {
+ gc_scoped_pool();
cdebug << msg << ": " << v << endl;
return true;
}