summaryrefslogtreecommitdiffstats
path: root/runtime/obj.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-06-23 11:22:07 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-06-23 11:22:07 +0200
commitd798f5b66f4ae699f352b6c40abd07495eff8f94 (patch)
treea5b7aa9e90a6639f2b86a3d7f3a5e13615055907 /runtime/obj.h
parentce5869f7c41c8db943d8cbe804b69af40d43e2e6 (diff)
downloadrsyslog-d798f5b66f4ae699f352b6c40abd07495eff8f94.tar.gz
rsyslog-d798f5b66f4ae699f352b6c40abd07495eff8f94.tar.xz
rsyslog-d798f5b66f4ae699f352b6c40abd07495eff8f94.zip
some more optimizations
- done malloc() instead of calloc() for msg_t, as we have large space which needs not be initialized - shrunk syslogTime structure in the hope to get better cache and write performance (non-aligned data should not hurt much here)
Diffstat (limited to 'runtime/obj.h')
-rw-r--r--runtime/obj.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/obj.h b/runtime/obj.h
index 3973a16e..50868cc9 100644
--- a/runtime/obj.h
+++ b/runtime/obj.h
@@ -77,8 +77,8 @@
/* the next macro MUST be called in Constructors: */
#ifndef NDEBUG /* this means if debug... */
# define objConstructSetObjInfo(pThis) \
- ASSERT(((obj_t*) (pThis))->pObjInfo == NULL); \
((obj_t*) (pThis))->pObjInfo = pObjInfoOBJ; \
+ ((obj_t*) (pThis))->pszName = NULL; \
((obj_t*) (pThis))->iObjCooCKiE = 0xBADEFEE
#else
# define objConstructSetObjInfo(pThis) ((obj_t*) (pThis))->pObjInfo = pObjInfoOBJ