summaryrefslogtreecommitdiffstats
path: root/kjs/collector.cpp
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-03-07 17:22:58 -0600
committerDarrell Anderson <humanreadable@yahoo.com>2012-03-07 17:22:58 -0600
commite15521d96b21cb0c771cce7cbe2ceb38f27c8844 (patch)
treed70ae645d1e414273f12736df3589cc96fdeebda /kjs/collector.cpp
parent563d4ecebe282b0062cbdb74413ef960401a25bf (diff)
downloadtdelibs-e15521d96b21cb0c771cce7cbe2ceb38f27c8844.tar.gz
tdelibs-e15521d96b21cb0c771cce7cbe2ceb38f27c8844.zip
Add source code module name to stdout/stderr messages to improve readability.
Diffstat (limited to 'kjs/collector.cpp')
-rw-r--r--kjs/collector.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kjs/collector.cpp b/kjs/collector.cpp
index b8d233850..2ddd635a6 100644
--- a/kjs/collector.cpp
+++ b/kjs/collector.cpp
@@ -163,7 +163,7 @@ bool Collector::collect()
if (InterpreterImp::s_hook) {
InterpreterImp *scr = InterpreterImp::s_hook;
do {
- //fprintf( stderr, "Collector marking interpreter %p\n",(void*)scr);
+ //fprintf( stderr, "[kjs-collector] Collector marking interpreter %p\n",(void*)scr);
scr->mark();
scr = scr->next;
} while (scr != InterpreterImp::s_hook);
@@ -221,7 +221,7 @@ bool Collector::collect()
if (!(imp->_flags & ValueImp::VI_DESTRUCTED)) {
if (!imp->refcount && imp->_flags == (ValueImp::VI_GCALLOWED | ValueImp::VI_CREATED)) {
- //fprintf( stderr, "Collector::deleting ValueImp %p (%s)\n", (void*)imp, typeid(*imp).name());
+ //fprintf( stderr, "[kjs-collector] Collector::deleting ValueImp %p (%s)\n", (void*)imp, typeid(*imp).name());
// emulate destructing part of 'operator delete()'
imp->~ValueImp();
curBlock->usedCells--;