From: fabbione@sourceware.org <fabbione@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/rgmanager ChangeLog src/clulib/alloc.c
Date: 21 Jun 2007 18:39:09 -0000 [thread overview]
Message-ID: <20070621183909.26639.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: fabbione at sourceware.org 2007-06-21 18:39:08
Modified files:
rgmanager : ChangeLog
rgmanager/src/clulib: alloc.c
Log message:
Fix build on ia64 by adding a temporary workaround and make sure to wrap
STACKSIZE properly withing DEBUG.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/ChangeLog.diff?cvsroot=cluster&r1=1.47&r2=1.48
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/clulib/alloc.c.diff?cvsroot=cluster&r1=1.10&r2=1.11
--- cluster/rgmanager/ChangeLog 2007/06/14 19:08:57 1.47
+++ cluster/rgmanager/ChangeLog 2007/06/21 18:39:08 1.48
@@ -1,3 +1,9 @@
+2007-06-21 Fabio M. Di Nitto <fabbione@ubuntu.com>
+ * rgmanager/src/clulib/alloc.c: Undefine DEBUG when building on IA64.
+ The __builtin_address functionality should be taken from libunwind
+ but porting requires some work. For now use this workaround and
+ also make sure to wrap STACKSIZE withing DEBUG.
+
2007-06-14 Lon Hohberger <lhh@redhat.com>
* include/resgroup.h: Fix size incompatibility on 32/64 bit mixed
clusters. Put in stubs for intelligent handling of state sizes
--- cluster/rgmanager/src/clulib/alloc.c 2007/02/21 20:49:16 1.10
+++ cluster/rgmanager/src/clulib/alloc.c 2007/06/21 18:39:08 1.11
@@ -116,9 +116,11 @@
#include <unistd.h>
#include <sys/wait.h>
+#ifndef __ia64__
#ifndef DEBUG
#define DEBUG /* Record program counter of malloc/calloc */
#endif /* or realloc call; print misc stuff out */
+#endif
/* Tunable stuff XXX This should be external */
#define PARANOID /* Trade off a bit of space and speed for
@@ -667,7 +669,7 @@
#define stack_pointer(n) \
(__builtin_frame_address(n)?__builtin_return_address(n):NULL)
-
+
#define assign_address(_ptr, _cnt) \
{ \
switch(_cnt) { \
@@ -806,10 +808,12 @@
free(void *p)
{
memblock_t *b;
+#ifdef DEBUG
#ifdef STACKSIZE
void *pc = __builtin_return_address(0);
int x;
#endif
+#endif
if (!p) {
#if 0
@@ -862,11 +866,13 @@
}
#endif
+#ifdef DEBUG
#ifdef STACKSIZE
for (x = 0; x < STACKSIZE; x++)
b->mb_pc[x] = NULL;
b->mb_pc[0] = pc;
#endif
+#endif
b->mb_state = ST_FREE;
b->mb_next = NULL;
@@ -981,11 +987,13 @@
#ifdef PARANOID
int any = 0;
int x;
+#ifdef DEBUG
#ifdef STACKSIZE
#ifndef GDB_HOOK
int sp;
#endif
#endif
+#endif
memblock_t *b;
fflush(stdout);
next reply other threads:[~2007-06-21 18:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-21 18:39 fabbione [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-08-09 9:22 [Cluster-devel] cluster/rgmanager ChangeLog src/clulib/alloc.c fabbione
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070621183909.26639.qmail@sourceware.org \
--to=fabbione@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.