Changeset 672783 in git for kernel/mminit.cc
- Timestamp:
- Jul 28, 2009, 4:59:52 PM (14 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 7b87efd89885ee6835475300c291481f6c035bb7
- Parents:
- a07e45cfc61927c5711cee673474fb891d4574ac
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/mminit.cc
ra07e45 r672783 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mminit.cc,v 1. 5 2009-07-28 14:15:05Singular Exp $ */4 /* $Id: mminit.cc,v 1.6 2009-07-28 14:59:30 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: init of memory management … … 38 38 if(mmIsInitialized==0) 39 39 { 40 #if defined(OMALLOC_USES_MALLOC) || defined(X_OMALLOC) 41 /* in mmstd.c, for some architectures freeSize() unconditionally uses the *system* free() */ 42 /* sage ticket 5344: http://trac.sagemath.org/sage_trac/ticket/5344 */ 43 /* solution: correctly check OMALLOC_USES_MALLOC from omalloc.h, */ 44 /* do not rely on the default in Singular as libsingular may be different */ 45 mp_set_memory_functions(omMallocFunc,omReallocSizeFunc,omFreeSizeFunc); 46 #else 47 mp_set_memory_functions(malloc,reallocSize,freeSize); 48 #endif 40 49 om_Opts.OutOfMemoryFunc = omSingOutOfMemoryFunc; 41 50 #ifndef OM_NDEBUG
Note: See TracChangeset
for help on using the changeset viewer.