Branch: Tag:

2006-08-08

2006-08-08 22:23:11 by Martin Stjernholm <mast@lysator.liu.se>

Make some effort to find the real page size.

Rev: src/configure.in:1.991
Rev: src/pike_embed.c:1.9
Rev: src/pike_memory.c:1.182
Rev: src/pike_memory.h:1.54
Rev: src/program.c:1.607

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: pike_memory.h,v 1.53 2006/07/05 19:28:10 mast Exp $ + || $Id: pike_memory.h,v 1.54 2006/08/08 22:23:10 mast Exp $   */      #ifndef MEMORY_H
114:   #include "block_alloc_h.h"   #define MEMCHR0 MEMCHR    + extern int page_size; +    /* Note to self: Prototypes must be updated manually /Hubbe */   PMOD_EXPORT ptrdiff_t pcharp_memcmp(PCHARP a, PCHARP b, int sz);   PMOD_EXPORT long pcharp_strlen(PCHARP a);
141:   PMOD_EXPORT void *mexec_alloc(size_t sz);   PMOD_EXPORT void *mexec_realloc(void *ptr, size_t sz);   PMOD_EXPORT void mexec_free(void *ptr); + void init_pike_memory (void);      #undef BLOCK_ALLOC   
229:    RET = ret; \    } while(0)    - #ifdef DEBUG_MALLOC - void initialize_dmalloc(void); - #else - #define initialize_dmalloc() +    #endif -  - #endif +