Changeset c636e06 in git


Ignore:
Timestamp:
Oct 22, 1999, 6:31:22 PM (25 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
f9cc5facebdc0080caf63397d8ae93d71d09e45e
Parents:
c80d203cf8846a9ed5543a5cf3c4b341ea8226a3
Message:
* small changes w.r.t. BT_MAXSTACK


git-svn-id: file:///usr/local/Singular/svn/trunk@3779 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Singular/mmalloc.c

    rc80d203 rc636e06  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mmalloc.c,v 1.18 1999-10-19 14:55:38 obachman Exp $ */
     4/* $Id: mmalloc.c,v 1.19 1999-10-22 16:31:21 obachman Exp $ */
    55
    66/*
     
    185185  DBMCB *what = (DBMCB*) ((char*) addr - DebugOffsetFront);
    186186
     187#if MDEBUG >= 0
    187188  if ( ! mmCheckDBMCB(what, size, MM_USEDFLAG))
    188189  {
     
    190191    return;
    191192  }
     193#endif
    192194
    193195#ifdef HEAP_DEBUG
     
    286288    int tmpsize=RealSizeFromSize(size);
    287289
     290#if MDEBUG >= 0
    288291    if ( ! mmCheckDBMCB(what, size, MM_USEDFLAG))
    289292    {
     
    291294      return;
    292295    }
     296#endif
     297
    293298    mmTakeOutDBMCB(what);
    294299    mmFreeToSystem(what, tmpsize);
  • Singular/mmbt.c

    rc80d203 rc636e06  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mmbt.c,v 1.14 1999-10-22 11:14:14 obachman Exp $ */
     4/* $Id: mmbt.c,v 1.15 1999-10-22 16:31:21 obachman Exp $ */
    55/*
    66* ABSTRACT: backtrace: part of memory subsystem (for linux/elf)
     
    6565}
    6666
     67extern void* main;
    6768void mmTrack (unsigned long *bt_stack)
    6869{
     
    7879  {
    7980    bt_stack[i]=pc; i++;
     81    if (((unsigned long) pc) == ((unsigned long) &main)) break;
    8082    fp = (unsigned long *) *fp;
    8183  }
  • Singular/mod2.h.in

    rc80d203 rc636e06  
    55 *          DO NOT EDIT!
    66 *
    7  *  Version: $Id: mod2.h.in,v 1.72 1999-10-22 11:14:15 obachman Exp $
     7 *  Version: $Id: mod2.h.in,v 1.73 1999-10-22 16:31:22 obachman Exp $
    88 *******************************************************************/
    99#ifndef MOD2_H
     
    336336 *
    337337 * define MDEBUG to
     338 * -1 to enable MTRACK, but to skip memory checks
    338339 * 0 to enable basic memory checks (at least on each alloc/free)
    339340 * 1 for addtl. containment checks in free/alloc list for each memory check
     
    479480#ifdef MTRACK
    480481#ifndef MDEBUG
    481 #define MDEBUG 0
     482#define MDEBUG -1
    482483#endif
    483484#ifndef MLIST
Note: See TracChangeset for help on using the changeset viewer.