Changeset 43568c in git


Ignore:
Timestamp:
Sep 12, 2011, 2:49:35 PM (12 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
6a4ba5f0fcf1059eaa59fa2244712afede164f3c
Parents:
d6039dfbb647e2775d91661b9541f7600bf05058
git-author:
Martin Lee <martinlee84@web.de>2011-09-12 14:49:35+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:12:43+01:00
Message:
deleted memory manager of factory
Location:
factory
Files:
12 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • factory/NTLconvert.cc

    rd6039d r43568c  
    4141#define Alloc(L) omAlloc(L)
    4242#define Free(A,L) omFreeSize(A,L)
    43 #elif defined(USE_MEMUTIL)
    44 #include "memutil.h"
    45 #define Alloc(L) getBlock(L)
    46 #define Free(A,L) freeBlock(A,L)
    4743#else
    4844#define Alloc(L) malloc(L)
  • factory/canonicalform.cc

    rd6039d r43568c  
    1717#include "cf_binom.h"
    1818
    19 #if defined (USE_MEMUTIL) && ! defined (USE_OLD_MEMMAN)
    20 #include "memman.h"
    21 #endif
    22 
    2319#include "cf_gmp.h"
    2420
     
    4137    static bool initialized = false;
    4238    if ( ! initialized ) {
    43 #if (defined (USE_MEMUTIL) && ! defined (USE_OLD_MEMMAN)) || defined (SINGULAR)
     39#if defined (SINGULAR)
    4440        (void)mmInit();
    4541#endif
  • factory/configure.ac

    rd6039d r43568c  
    4343
    4444
    45 AC_ARG_WITH(
    46   memman,
    47   [  --with-memman(=<memman>) specify Factory memory manager.
    48                           <memman> is either \`old' (default), \`new', or \`no'.],
    49   ,
    50   [ if test "x$with_Singular" = xyes; then
    51       with_memman=no
    52     else
    53       with_memman=old
    54     fi ])
    55 
    5645# font-lock-trick: '
    5746
     
    7261  ,
    7362  [enable_streamio=no])
    74 
    75 AC_ARG_ENABLE(
    76   memdebug,
    77   [  --enable-memdebug=<level> switch on memory management debugging.  Meaningful
    78                           with \`--with-memman=new' only.  <level> may be either
    79                           \`no' (default), \`normal', or \`full'.],
    80   ,
    81   enable_memdebug=no)
    8263
    8364AC_ARG_ENABLE(
     
    279260  factorysrc='$(basefactorysrc) $(singfactorysrc)'
    280261  factoryincl='$(basefactoryincl) $(singfactoryincl)'
    281   memmansrc=
    282   memmanincl=
    283262
    284263  alltargets=cf
     
    290269  factorysrc='$(basefactorysrc)'
    291270  factoryincl='$(basefactoryincl)'
    292   memmansrc='$(basememmansrc)'
    293   memmanincl=
    294271
    295272  alltargets=cf
     
    383360if test "$with_omalloc" = yes; then
    384361  AC_DEFINE([HAVE_OMALLOC],[1],[HAVE_OMALLOC])
    385   with_memman=no
    386362fi
    387363AC_MSG_RESULT($with_omalloc)
     
    390366fi
    391367
    392    
    393 # memory manager
    394 if test "x$with_memman" = xyes; then
    395   alltargets="$alltargets mem"
    396   installtargets="$installtargets installmem"
    397   uninstalltargets="$uninstalltargets uninstallmem"
    398   AC_DEFINE([USE_MEMUTIL],[1],[USE_MEMUTIL])
    399 
    400   if test "x$with_memman" != xnew; then
    401     memmansrc="$memmansrc \$(oldmemmansrc)"
    402     memmanincl='$(oldmemmanincl)'
    403     AC_DEFINE([USE_OLD_MEMMAN],[1],[USE_OLD_MEMMAN])
    404   else
    405     memmansrc="$memmansrc \$(newmemmansrc)"
    406     memmanincl='$(newmemmanincl)'
    407 
    408     if test "x$enable_memdebug" = xfull; then
    409       AC_DEFINE([MDEBUG], [1], [MDEBUG])
    410     elif test "x$enable_memdebug" != xno; then
    411       AC_DEFINE([MDEBUG], [0], [MDEBUG])
    412     fi
    413   fi
    414 fi
    415368
    416369# "configurable inline methods"
     
    458411AC_SUBST(factorysrc)
    459412AC_SUBST(factoryincl)
    460 AC_SUBST(memmansrc)
    461 AC_SUBST(memmanincl)
    462413
    463414AC_SUBST(alltargets)
  • factory/initgmp.cc

    rd6039d r43568c  
    99
    1010#include "cf_defs.h"
    11 #ifdef USE_MEMUTIL
    12 #ifdef USE_OLD_MEMMAN
    13 #include "memutil.h"
    14 #else
    15 #include "memman.h"
    16 #endif
    17 #endif
    18 
    19 #ifdef USE_MEMUTIL
    20 #ifndef USE_OLD_MEMMAN
    21 #ifdef MDEBUG
    22 void * mgAllocBlock( size_t t)
    23 {
    24   return mmDBAllocBlock(t,"gmp",0);
    25 }
    26 void mgFreeBlock( void* a, size_t t)
    27 {
    28   mmDBFreeBlock(a,t,"gmp",0);
    29 }
    30 void * mgReallocBlock( void* a, size_t t1, size_t t2)
    31 {
    32   return mmDBReallocBlock(a,t1,t2,"gmp",0);
    33 }
    34 #endif
    35 #endif
    36 #endif
    3711
    3812int initializeGMP()
  • factory/newdelete.cc

    rd6039d r43568c  
    66
    77#include "cf_assert.h"
    8 
    9 #ifdef USE_OLD_MEMMAN
    10 #include "memutil.h"
    11 #else
    12 #include "memman.h"
    13 #endif
    148
    159// The C++ standard has ratified a change to the new operator.
     
    3125// Most operating systems will have slowed to be unusable
    3226// long before the exception gets thrown.
    33 
    34 #ifdef USE_OLD_MEMMAN
    35 
    36 void * operator new ( size_t size )
    37 {
    38     return getBlock( size );
    39 }
    40 
    41 void operator delete ( void * block )
    42 {
    43     freeBlock( block, 0 );
    44 }
    45 
    46 void * operator new[] ( size_t size )
    47 {
    48     return getBlock( size );
    49 }
    50 
    51 void operator delete[] ( void * block )
    52 {
    53     freeBlock( block, 0 );
    54 }
    55 
    56 void * operator new(size_t size, std::nothrow_t) throw()
    57 {
    58     return getBlock( size );
    59 }
    60 void * operator new[](size_t size, std::nothrow_t) throw()
    61 {
    62     return getBlock( size );
    63 }
    64 
    65 #else
    6627
    6728void * operator new ( size_t size )
     
    9455}
    9556
    96 #endif /* USE_OLD_MEMMAN */
Note: See TracChangeset for help on using the changeset viewer.