Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 38630 | Differences between
and this patch

Collapse All | Expand All

(-)malloc/malloc.c.orig (+13 lines)
Lines 311-316 extern "C" { Link Here
311
#define assert(x) ((void)0)
311
#define assert(x) ((void)0)
312
#endif
312
#endif
313
313
314
/* needed for owl-malloc-unlink-sanity-check */
315
#include <abort-instr.h>
316
#ifndef ABORT_INSTRUCTION
317
#define ABORT_INSTRUCTION
318
#endif
314
319
315
/*
320
/*
316
  INTERNAL_SIZE_T is the word-size used for internal bookkeeping
321
  INTERNAL_SIZE_T is the word-size used for internal bookkeeping
Lines 1951-1956 typedef struct malloc_chunk* mbinptr; Link Here
1951
#define unlink(P, BK, FD) {                                            \
1956
#define unlink(P, BK, FD) {                                            \
1952
  FD = P->fd;                                                          \
1957
  FD = P->fd;                                                          \
1953
  BK = P->bk;                                                          \
1958
  BK = P->bk;                                                          \
1959
  /* owl-malloc-unlink-sanity-check */                                 \
1960
  if (FD->bk != P || BK->fd != P)                                      \
1961
  {                                                                    \
1962
    ABORT_INSTRUCTION;                                                 \
1963
    _exit(127);                                                        \
1964
    while (1)                                                          \
1965
      ABORT_INSTRUCTION;                                               \
1966
  }                                                                    \
1954
  FD->bk = BK;                                                         \
1967
  FD->bk = BK;                                                         \
1955
  BK->fd = FD;                                                         \
1968
  BK->fd = FD;                                                         \
1956
}
1969
}

Return to bug 38630